DeliveryStatus 열거형

정의

메시지 배달이 의심스럽거나 메시지가 배달되지 않은 경우 메시지 배달 상태를 지정하는 열거형입니다.

public enum class DeliveryStatus
public enum DeliveryStatus
type DeliveryStatus = 
Public Enum DeliveryStatus
상속
DeliveryStatus

필드

Name Description
InDoubt 0

메시지 배달이 의심스럽습니다.

NotDelivered 1

메시지가 배달되지 않았습니다.

예제

다음 예제에서는 서비스 작업 내에서 메시지의 액세스 DeliveryStatus 하는 방법을 보여 있습니다.

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();
}
<OperationBehavior(TransactionScopeRequired := True, TransactionAutoComplete := True)> _
Public Sub SimpleSubmitPurchaseOrder(ByVal po As PurchaseOrder)
    Console.WriteLine("Submitting purchase order did not succeed ", po)
    Dim mqProp As MsmqMessageProperty = TryCast(OperationContext.Current.IncomingMessageProperties(MsmqMessageProperty.Name), MsmqMessageProperty)

    Console.WriteLine("Message Delivery Status: {0} ", mqProp.DeliveryStatus)
    Console.WriteLine("Message Delivery Failure: {0}", mqProp.DeliveryFailure)
    Console.WriteLine()
End Sub

설명

메시지가 배달되지 않았거나 큐 관리자가 배달 결과를 잘 모르기 때문에 큐에 전송된 메시지가 배달 못 한 편지 큐에 배치될 수 있습니다. 배달 DeliveryStatus 못 한 편지 큐에서 메시지를 읽을 때 메시지 배달 상태를 가져오는 방법입니다.

적용 대상