UseAuthentication Property (Message)
Gets or sets a value that indicates whether the message was (or must be) authenticated before being sent.
Syntax
'Declaration <MessagingDescriptionAttribute("Specifies if the message needs to be authenticated.")> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <ReadOnlyAttribute(True)> Public Property UseAuthentication As Boolean
'Usage Dim instance As Message Dim value As Boolean instance.UseAuthentication = value value = instance.UseAuthentication
[MessagingDescription("Specifies if the message needs to be authenticated.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [ReadOnly(true)] public bool UseAuthentication {get; set;}
[MessagingDescription("Specifies if the message needs to be authenticated.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [ReadOnly(true)] public: property bool UseAuthentication { bool get(); void set ( bool value); }
Property Value
true if the sending application requested authentication for the message; otherwise, false.Exceptions
Exception | Description |
---|---|
System.InvalidOperationException | The message queue is filtered to ignore the UseAuthentication property. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also