共用方式為


MSMQMessage.AuthenticationProviderType

 

Applies To: Windows 10, Windows 7, Windows 8, Windows 8.1, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2, Windows Server Technical Preview, Windows Vista

(Introduced in MSMQ 2.0.) The AuthenticationProviderType property of the MSMQMessage object specifies the type of cryptographic provider used to generate the digital signature attached to the message.

Data type: Long
Run-time access: Read/write
Property AuthenticationProviderType As Long  

Property Value

The only supported value of this property is PROV_RSA_FULL, which is the default value.

Remarks

The AuthenticationProviderType property is typically used when you are working with foreign queues. The name (MSMQMessage.AuthenticationProviderName) and type of the cryptographic provider are required to validate the digital signature of messages sent to a foreign queue or messages passed to Message Queuing from a foreign messaging system. For more information on exchanging messages with foreign messaging systems, see Connector Services.

When sending messages, always set AuthenticationProviderType and MSMQMessage.ConnectorTypeGuid together. AuthenticationProviderType is ignored if MSMQMessage.ConnectorTypeGuid is not also set when the message is sent.

In C++ COM applications, you must use a smart pointer to the IMSMQMessage2 or IMSMQMessage3 interface to expose the AuthenticationProviderType property.

Equivalent API Function Property

With API function calls, the equivalent property is PROPID_M_PROV_TYPE.

Requirements

Windows NT/2000/XP: Included in Windows 2000 and later.

Windows 95/98/Me: Unsupported.

Header: Declared in Mqoai.h.

Library: Use Mqoa.lib

See Also

MSMQMessage
PROPID_M_PROV_TYPE
MSMQMessage.AuthenticationProviderName