AttachCurrentSecurityContext
MSMQMessage

The AttachCurrentSecurityContext method retrieves security context information from a specific certificate.

Quick Info

Type: Long
Run time: read/write

Syntax

object.AttachCurrentSecurityContext
 
Syntax Element Description
object Message (MSMQMessage) object that defines the message.

Remarks

Security context information can be retrieved from the security certificate specified by SenderCertificate. SenderCertificate can specify an external certificate or an internal certificate.

Although the sending application can explicitly retrieve security context information from the security certificate, AttachCurrentSecurityContext can retrieve and cache the needed information using a single call, then automatically pass the information along with the message when it is sent.

For information on how MSMQ authenticates messages, see Message Authentication.


© 1997 by Microsoft Corporation. All rights reserved.