MsmqMessageProperty Class

 

The MsmqMessageProperty class encapsulates the properties of a message that has been read from a queue.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

System::Object
  System.ServiceModel.Channels::MsmqMessageProperty

public ref class MsmqMessageProperty sealed 

NameDescription
System_CAPS_pubpropertyAbortCount

Gets an Int32 value that indicates the number of times the message participated in the transaction that was aborted, that is, channel attempts - 1.

System_CAPS_pubpropertyDeliveryFailure

Gets a value from the DeliveryFailure enumeration that indicates why the message failed delivery.

System_CAPS_pubpropertyDeliveryStatus

Gets a value from the DeliveryStatus enumeration that indicates the delivery status of the message.

System_CAPS_pubpropertyMoveCount

Gets an Int32 value that indicates the number of times the message has moved from the main queue to the subqueue or the other way.

NameDescription
System_CAPS_pubmethodEquals(Object^)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodSystem_CAPS_staticGet(Message^)

Gets the MsmqMessageProperty for the specified Message.

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticName

Gets a String that contains the string "MsmqMessageProperty".

The MsmqMessageProperty class is obtained from the channel context and is used primarily for error processing. For example, if an application reads a message from the dead-letter queue, the application should examine properties like DeliveryFailure and DeliveryStatus. If an application is performing its own poison-message handling, it should examine properties like AbortCount.

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: