Export (0) Print
Expand All

DefaultPropertiesToSend.UseAuthentication Property

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

Namespace: System.Messaging
Assembly: System.Messaging (in system.messaging.dll)

public bool UseAuthentication { get; set; }
/** @property */
public boolean get_UseAuthentication ()

/** @property */
public void set_UseAuthentication (boolean value)

public function get UseAuthentication () : boolean

public function set UseAuthentication (value : boolean)

Property Value

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

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.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

© 2014 Microsoft