SoapHeader.EncodedMustUnderstand Property

Gets or sets the value of the mustUnderstand XML attribute for the SOAP header when communicating with SOAP protocol version 1.1.

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

public:
property String^ EncodedMustUnderstand {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_EncodedMustUnderstand ()

/** @property */
public void set_EncodedMustUnderstand (String value)

public function get EncodedMustUnderstand () : String

public function set EncodedMustUnderstand (value : String)

Not applicable.

Property Value

The value of the mustUnderstand attribute. The default is "0".

Exception typeCondition

ArgumentException

The property is set to a value other than: "0", "1", "true", or "false".

Do not use this property. Instead use the MustUnderstand property.

No code example is currently available or this language may not be supported.
// MyHeader class is derived from the SoapHeader class.
MyHeader customHeader = new MyHeader();
customHeader.MyValue = "Header value for MyValue";
// Set the EncodedMustUnderstand property to true.
customHeader.set_EncodedMustUnderstand("1");

WebService_SoapHeader_EncodedMustUnderstand myWebService 
    = new WebService_SoapHeader_EncodedMustUnderstand();

myWebService.myHeader1 = customHeader;
String results = myWebService.MyWebMethod1();
Console.WriteLine(results);
try {
    results = myWebService.MyWebMethod2();
}
catch (System.Exception myException) {
    Console.WriteLine("Exception raised in MyWebMethod2.");
    Console.WriteLine("Message: " + myException.get_Message());
}

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: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show: