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

属性值

String

用于生成消息数字签名的加密提供程序的名称。 默认值为 Microsoft 基础加密提供程序版本 1.0.

属性

例外

未能设置 AuthenticationProviderName 属性。

注解

使用外国队列时,通常使用 AuthenticationProviderName 。 消息队列要求加密提供程序的身份验证提供程序名称和身份验证提供程序类型 (身份验证提供程序) 验证发送到外国队列的消息的数字签名,以及从外国队列传递到消息队列的消息的数字签名。

发送消息时,请始终将和ConnectorType属性设置为AuthenticationProviderName一起。 发送消息时,如果未设置连接器类型,消息队列将忽略身份验证提供程序名称。

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

适用于

另请参阅