MsmqBindingElementBase.ReceiveErrorHandling 속성

정의

포이즌 메시지 및 디스패치할 수 없는 메시지의 처리 방법을 지정하는 열거형 값을 가져오거나 설정합니다.

public:
 property System::ServiceModel::ReceiveErrorHandling ReceiveErrorHandling { System::ServiceModel::ReceiveErrorHandling get(); void set(System::ServiceModel::ReceiveErrorHandling value); };
[System.Configuration.ConfigurationProperty("receiveErrorHandling", DefaultValue=System.ServiceModel.ReceiveErrorHandling.Fault)]
public System.ServiceModel.ReceiveErrorHandling ReceiveErrorHandling { get; set; }
[<System.Configuration.ConfigurationProperty("receiveErrorHandling", DefaultValue=System.ServiceModel.ReceiveErrorHandling.Fault)>]
member this.ReceiveErrorHandling : System.ServiceModel.ReceiveErrorHandling with get, set
Public Property ReceiveErrorHandling As ReceiveErrorHandling

속성 값

ReceiveErrorHandling

포이즌 메시지 및 디스패치할 수 없는 메시지의 처리 방법을 지정하는 ReceiveErrorHandling 값입니다.

특성

설명

이 속성이 Fault로 설정된 경우 수신기에 오류가 발생하고, ProtocolException을 래핑하는 MsmqPoisonMessageException이 추적 및 throw됩니다. 메시지는 큐에 그대로 남아 있으며 수동적인 방법으로 제거해야 합니다. MsmqPoisonMessageException은 포이즌 메시지 큐에서 메시지를 식별하여 수동으로 제거하는 데 사용할 수 있는 MessageLookupId를 포함합니다.

이 속성이 Drop으로 설정되면 잘못된 메시지가 바로 제거됩니다.

이 속성이 Reject로 설정되면 부정 확인 메시지가 클라이언트에 발송되고 메시지가 포이즌 메시지 큐에서 제거됩니다. 이 옵션은 MSMQ(메시지 큐) 4.0에서만 사용할 수 있습니다.

이 속성이 Move로 설정되면 메시지가 최종 포이즌 메시지 하위 큐로 이동합니다. 이 옵션은 메시지 큐(MSMQ) 4.0에서만 사용할 수 있습니다.

적용 대상