MessagePropertyFilter.AuthenticationProviderType 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取或设置一个值,该值指示接收或查看消息时是否检索 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消息队列通过连接器应用程序与此类队列通信。
适用于
另请参阅
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈