Редагувати

Поділитися через


Message.AuthenticationProviderName Property

Definition

Gets or sets the name of the cryptographic provider used to generate the digital signature of the message.

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

Property Value

The name of the cryptographic provider used to generate the digital signature of the message. The default is Microsoft Base Cryptographic Provider version 1.0.

Attributes

Exceptions

The AuthenticationProviderName property could not be set.

-or-

The message queue is filtered to ignore the AuthenticationProviderName property.

Remarks

You typically use the AuthenticationProviderName when working with foreign queues. Message Queuing requires the authentication provider name and authentication provider type of the cryptographic provider (authentication provider) to validate the digital signatures of both messages sent to a foreign queue and messages passed to Message Queuing from a foreign queue.

When sending a message, always set the AuthenticationProviderName and ConnectorType properties together. When the message is sent, Message Queuing ignores the authentication provider name if the connector type is not also set.

The AuthenticationProviderName property cannot be null, but it can be an empty string ("").

Applies to

See also