NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Message.AuthenticationProviderType

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

[Visual Basic]
Overridable Public Property AuthenticationProviderType As _
   CryptoProviderType
[C#]
public CryptoProviderType AuthenticationProviderType {virtual get;
   virtual set;}
[C++]
public: __property virtual CryptoProviderType get_AuthenticationProviderType();
public: __property virtual void set_AuthenticationProviderType(CryptoProviderType);
[JScript]
public function get AuthenticationProviderType() : CryptoProviderType;
public function set AuthenticationProviderType(CryptoProviderType);

Property Value

One of the CryptoProviderType values. The default is RSA_FULL.

Exceptions

Exception Type Condition
InvalidOperationException The AuthenticationProviderType property could not be set.

Remarks

AuthenticationProviderType provides access to the AuthenticationProviderType property of the Message Queuing application's MSMQMessage object.

The AuthenticationProviderType is typically used when working with foreign queues. The AuthenticationProviderName and AuthenticationProviderType of the cryptographic provider (authentication provider) are required to validate the digital signature of messages sent to a foreign queue or messages passed to Message Queuing from a foreign queue.

When sending messages, always set AuthenticationProviderType and ConnectorType together. The authentication provider type is ignored if the connector type is not also set when the message is sent.

Example

See Also

Message Class | Message Members | System.Messaging Namespace | Authenticated | UseAuthentication | ConnectorType | AuthenticationProviderName | Authenticate