Редагувати

Поділитися через


DefaultPropertiesToSend.UseAuthentication Property

Definition

Gets or sets a value that indicates whether the message must be authenticated before being sent.

public:
 property bool UseAuthentication { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgUseAuthentication")]
public bool UseAuthentication { get; set; }
[<System.Messaging.MessagingDescription("MsgUseAuthentication")>]
member this.UseAuthentication : bool with get, set
Public Property UseAuthentication As Boolean

Property Value

true if the sending application requested authentication for the message; otherwise, false. The default is false.

Attributes

Remarks

The UseAuthentication property specifies whether the message needs to be authenticated. If the sending application requests authentication, Message Queuing creates a digital signature and uses it to sign the message when it is sent and to authenticate the message when it is received.

If a message is sent to a queue that only accepts authenticated messages, the message will be rejected when it reaches the queue if UseAuthentication is set to false.

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.

Applies to

See also