Gets or sets a value indicating whether a message must be authenticated.
[Visual Basic] Overridable Public Property UseAuthentication As Boolean [C#] public bool UseAuthentication {virtual get; virtual set;} [C++] public: __property virtual bool get_UseAuthentication(); public: __property virtual void set_UseAuthentication(bool); [JScript] public function get UseAuthentication() : Boolean; public function set UseAuthentication(Boolean);
true if the sending application requested authentication for the message; otherwise, false. The default is false.
Exception Type | Condition |
---|---|
InvalidOperationException | The message queue is filtered not to read the UseAuthentication property. |
UseAuthentication provides access to the IsAuthenticated property of the Message Queuing MSMQMessage object.
Note It is not possible to look at the properties of a message and determine whether a message failed authentication. Messages that fail authentication are discarded and are not delivered to the queue.
Message Class | Message Members | System.Messaging Namespace | Authenticated | ConnectorType | AuthenticationProviderName | AuthenticationProviderType | DigitalSignature | Authenticate