MessagePropertyFilter.AuthenticationProviderType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets a value that indicates whether to retrieve AuthenticationProviderType property information when receiving or peeking a message.
public:
property bool AuthenticationProviderType { bool get(); void set(bool value); };
[System.Messaging.MessagingDescription("MsgAuthenticationProviderType")]
public bool AuthenticationProviderType { get; set; }
[<System.Messaging.MessagingDescription("MsgAuthenticationProviderType")>]
member this.AuthenticationProviderType : bool with get, set
Public Property AuthenticationProviderType As Boolean
Property Value
true
to receive AuthenticationProviderType information; otherwise, false
. The default is false
.
- Attributes
Examples
The following code example demonstrates the use of the AuthenticationProviderType property.
// Set the queue's MessageReadPropertyFilter property
// to enable the message's
// AuthenticationProviderType property.
queue->MessageReadPropertyFilter->
AuthenticationProviderType = true;
// Peek at the message. Time out after ten seconds
// in case the message was not delivered.
orderMessage = queue->Peek(TimeSpan::FromSeconds(10.0));
// Display the value of the message's
// AuthenticationProviderType property.
Console::WriteLine(
"Message.AuthenticationProviderType: {0}",
orderMessage->AuthenticationProviderType);
// Set the queue's MessageReadPropertyFilter property to enable the
// message's AuthenticationProviderType property.
queue.MessageReadPropertyFilter.AuthenticationProviderType = true;
// Peek at the message. Time out after ten seconds in case the message
// was not delivered.
orderMessage = queue.Peek(TimeSpan.FromSeconds(10.0));
// Display the value of the message's AuthenticationProviderType
// property.
Console.WriteLine("Message.AuthenticationProviderType: {0}",
orderMessage.AuthenticationProviderType);
Remarks
The AuthenticationProviderType property of the Message class specifies the type of cryptographic provider used to generate the digital signature of the message. AuthenticationProviderType is typically used when working with foreign queues.
A foreign queue exists in a queuing system other than Microsoft Message Queuing. Microsoft Message Queuing communicates with such queues through a connector application.