This documentation is archived and is not being maintained.
DeliveryStatus Enumeration
Visual Studio 2008
An enumeration that specifies the delivery status of a message when the delivery of the message is in doubt, or when the message was not delivered.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
The following example shows how to access the DeliveryStatus of a message within a service operation.
public void SimpleSubmitPurchaseOrder(PurchaseOrder po) { Console.WriteLine("Submitting purchase order did not succeed ", po); MsmqMessageProperty mqProp = OperationContext.Current.IncomingMessageProperties[MsmqMessageProperty.Name] as MsmqMessageProperty; Console.WriteLine("Message Delivery Status: {0} ", mqProp.DeliveryStatus); Console.WriteLine("Message Delivery Failure: {0}", mqProp.DeliveryFailure); Console.WriteLine(); }
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: