Share via


MustUnderstandBehavior.ValidateMustUnderstand 속성

정의

SOAP 1.1 및 1.2 사양에 따른 헤더 인식 확인 여부를 지정하는 값을 가져오거나 설정합니다.

public:
 property bool ValidateMustUnderstand { bool get(); void set(bool value); };
public bool ValidateMustUnderstand { get; set; }
member this.ValidateMustUnderstand : bool with get, set
Public Property ValidateMustUnderstand As Boolean

속성 값

Boolean

헤더가 올바르게 처리되어야 하며 올바르게 처리되지 않을 경우 오류가 throw되면 true이고, 그렇지 않으면 false입니다. 기본값은 false입니다.

설명

런타임에 메시지에서 ValidateMustUnderstand 속성이 false이지만 메시지의 System.ServiceModel.Channels.MessageHeader 속성에 헤더가 없는 MessageHeader.MustUnderstand가 발견될 경우 예외가 throw되지 않게 하려면 true 속성을 MessageHeaders.UnderstoodHeaders로 설정합니다.

적용 대상