Edit

Bagikan melalui


SoapHeaderAttribute.Required Property

Definition

Caution

This property will be removed from a future version. The presence of a particular header in a SOAP message is no longer enforced

This member is obsolete and has no functionality.

public:
 property bool Required { bool get(); void set(bool value); };
[System.Obsolete("This property will be removed from a future version. The presence of a particular header in a SOAP message is no longer enforced", false)]
public bool Required { get; set; }
[<System.Obsolete("This property will be removed from a future version. The presence of a particular header in a SOAP message is no longer enforced", false)>]
member this.Required : bool with get, set
Public Property Required As Boolean

Property Value

A Boolean value.

Attributes

Remarks

To verify that a SOAP header is sent to an XML Web service, confirm that the member specified in the MemberName property is null. If it is null, the SOAP header was not sent.

In version 1.0 of the .NET Framework SDK, the Required property indicates whether a SOAP header must be understood and processed by the recipient XML Web service or XML Web service client. If a recipient did not process the SOAP header an exception was thrown.

Applies to