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)

[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)]
public bool Required { get; set; }

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: