編輯

共用方式為


MsmqMessage<T>.AcknowledgeType Property

Definition

Gets or sets the AcknowledgeTypes that is associated with this message.

public:
 property Nullable<System::Messaging::AcknowledgeTypes> AcknowledgeType { Nullable<System::Messaging::AcknowledgeTypes> get(); void set(Nullable<System::Messaging::AcknowledgeTypes> value); };
public System.Messaging.AcknowledgeTypes? AcknowledgeType { get; set; }
member this.AcknowledgeType : Nullable<System.Messaging.AcknowledgeTypes> with get, set
Public Property AcknowledgeType As Nullable(Of AcknowledgeTypes)

Property Value

The AcknowledgeTypes that is associated with this message. May be null.

Examples

message.AcknowledgeType = AcknowledgeTypes.PositiveArrival;
message.AcknowledgeType = AcknowledgeTypes.PositiveArrival

Remarks

This property specifies the type of acknowledgment messages that are requested by the sending application. The application can use this property to request notification of certain events. For example, the application might want to be notified when the message reaches its destination queue, when the message is retrieved, or if the message times out before it reaches its destination queue or is retrieved. For member details, see AcknowledgeTypes.

Applies to