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
屬性值
true
表示接收 AuthenticationProviderType 資訊,否則為 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 Message Queuing 以外的佇列系統中。 Microsoft Message Queuing 會透過連接器應用程式與這類佇列通訊。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應