Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SoapHeaderAttribute::Required Property

 
Note: This API is now obsolete.

This member is obsolete and has no functionality.

Namespace:   System.Web.Services.Protocols
Assembly:  System.Web.Services (in System.Web.Services.dll)

public:
[ObsoleteAttribute("This property will be removed from a future version. The presence of a particular header in a SOAP message is no longer enforced", 
	false)]
property bool Required {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

A Boolean value.

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.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft