Message.AuthenticationProviderName 屬性

定義

取得或設定用來產生訊息之數位簽章的密碼編譯提供者名稱。

public:
 property System::String ^ AuthenticationProviderName { System::String ^ get(); void set(System::String ^ value); };
[System.Messaging.MessagingDescription("MsgAuthenticationProviderName")]
public string AuthenticationProviderName { get; set; }
[<System.Messaging.MessagingDescription("MsgAuthenticationProviderName")>]
member this.AuthenticationProviderName : string with get, set
Public Property AuthenticationProviderName As String

屬性值

用來產生訊息的數位簽章的密碼編譯提供者的名稱。 預設值為 Microsoft Base Cryptographic Provider 1.0 版。

屬性

例外狀況

無法設定 AuthenticationProviderName 屬性。

-或-

篩選訊息佇列以忽略 AuthenticationProviderName 屬性。

備註

使用外部佇列時,您通常會使用 AuthenticationProviderName 。 消息佇列需要密碼編譯提供者的驗證提供者名稱和驗證提供者類型, (驗證提供者) 驗證傳送至外部佇列之訊息的數位簽名,以及從外部佇列傳遞至消息佇列的訊息。

傳送訊息時,請一律將 和 ConnectorType 屬性設定AuthenticationProviderName在一起。 傳送訊息時,如果未設定連接器類型,消息佇列會忽略驗證提供者名稱。

屬性 AuthenticationProviderName 不能是 null,但可以是空字串 (“”) 。

適用於

另請參閱