ClientRuntime.ValidateMustUnderstand 属性

定义

获取或设置一个值,该值指定是由系统还是由应用程序强制执行 SOAP MustUnderstand 标头处理。Gets or sets a value that specifies whether the system or the application enforces SOAP MustUnderstand header processing.

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

如果由系统执行 SOAP 标头 true 处理,则为 MustUnderstand,否则为 false,这表示由应用程序执行此处理。true if the system is to perform SOAP header MustUnderstand processing; otherwise false, which indicates that the application performs this processing. 默认值是 trueThe default value is true.

注解

使用 ValidateMustUnderstand 属性来关闭对到达的消息头强制执行验证。Use the ValidateMustUnderstand property to turn off the enforced validation of arriving message headers. 在正常执行过程中,将消息头与 UnderstoodHeaders 属性进行比较,来确认是否由服务显式处理到达的消息。In normal execution, message headers are compared against the UnderstoodHeaders property to confirm that arriving headers are explicitly handled by the service. 将此属性设置为 false 可以禁用此检查。Set this to false to disable this checking. 当设置为 false 时,应用程序必须检查有 MustUnderstand="true" 标记的标头,如果其中一个或多个标头没有被理解,则返回错误。When set to false, the application must check for headers marked with MustUnderstand="true" and return a fault if one or more of them were not understood. 当应用程序应接受任何返回的 SOAP 消息(例如,使用类型化消息或非类型化消息)以及执行自定义标头处理时,这将很有用。This is useful when the application is supposed to accept any returned SOAP messages (for example, when using typed or untyped messages) and perform custom header processing.

适用于