Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Message.ConnectorType Property

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

Namespace:  System.Messaging
Assembly:  System.Messaging (in System.Messaging.dll)
[MessagingDescriptionAttribute("MsgConnectorType")]
public Guid ConnectorType { get; set; }

Property Value

Type: System.Guid
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.
ExceptionCondition
InvalidOperationException

The message queue is filtered to ignore the ConnectorType property.

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):

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.