MessagePropertyFilter.AuthenticationProviderType 属性

定义

获取或设置一个值,该值指示接收或查看消息时是否检索 AuthenticationProviderType 属性信息。

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

属性值

如果接收 AuthenticationProviderType 信息,则为 true;否则为 false。 默认值为 false

属性

示例

下面的代码示例演示如何使用 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);
// 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);

注解

AuthenticationProviderType类的 Message 属性指定用于生成消息数字签名的加密提供程序的类型。 AuthenticationProviderType 通常在处理外部队列时使用 。

除消息队列之外,队列系统中还存在外部队列Microsoft队列。 Microsoft消息队列通过连接器应用程序与此类队列通信。

适用于

另请参阅