SoapHeaderAttribute.Required Property

NOTE: This property 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(L"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:
property bool Required {
	bool get ();
	void set (bool value);
}
/** @property */
public boolean get_Required ()

/** @property */
public void set_Required (boolean value)

public function get Required () : boolean

public function set Required (value : boolean)

Not applicable.

Property Value

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 a null reference (Nothing in Visual Basic). If it is a null reference (Nothing in Visual Basic), 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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 1.0, 1.1, 2.0
Obsolete (compiler warning) in 3.0

.NET Compact Framework

Supported in: 1.0
Obsolete (compiler warning) in 2.0

Community Additions

ADD
Show: