Επεξεργασία

Κοινή χρήση μέσω


Message.ConnectorType Property

Definition

Gets or sets a value that indicates that some message properties typically set by Message Queuing were set by the sending application.

public:
 property Guid ConnectorType { Guid get(); void set(Guid value); };
[System.Messaging.MessagingDescription("MsgConnectorType")]
public Guid ConnectorType { get; set; }
[<System.Messaging.MessagingDescription("MsgConnectorType")>]
member this.ConnectorType : Guid with get, set
Public Property ConnectorType As Guid

Property Value

A Guid defined by the application and used in conjunction with connector applications or message encryption. This Guid allows a receiving application to interpret message properties that were set by the sending application but that are usually set by Message Queuing.

Attributes

Exceptions

The message queue is filtered to ignore the ConnectorType property.

Remarks

Message Queuing requires the ConnectorType property be set whenever an application sets a message property that is usually set by Message Queuing. An application typically uses a ConnectorType in the following two cases:

  • Whenever a connector application passes a message. The ConnectorType tells the sending and receiving applications how to interpret the security and acknowledgment properties of the message.

  • Whenever the sending application, rather than Message Queuing, encrypts a message. The ConnectorType tells Message Queuing to use the DestinationSymmetricKey property value to decrypt the message.

You must set the ConnectorType property if you set any of the following properties (otherwise, the queue ignores these properties when the message is sent):

Applies to

See also