SoapHeaderBinding.Part Property

Gets or sets a value indicating to which MessagePart within the XML Web service the SoapHeaderBinding applies.

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

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

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

public function get Part () : String

public function set Part (value : String)

Not applicable.

Property Value

A string representing the name of the MessagePart to which the SoapHeaderBinding applies.

SoapHeaderBinding^ mySoapHeaderBinding = gcnew SoapHeaderBinding;
// Set the Message within the XML Web service to which the
// 'SoapHeaderBinding' applies.
mySoapHeaderBinding->Message =
   gcnew XmlQualifiedName( "s0:HelloMyHeader" );
mySoapHeaderBinding->Part = "MyHeader";
mySoapHeaderBinding->Use = SoapBindingUse::Literal;
// Add mySoapHeaderBinding to the 'myInputBinding' object.
myInputBinding->Extensions->Add( mySoapHeaderBinding );

SoapHeaderBinding mySoapHeaderBinding = new SoapHeaderBinding();
// Set the Message within the XML Web service to which the 
// 'SoapHeaderBinding' applies.
mySoapHeaderBinding.set_Message(new XmlQualifiedName(
    "s0:HelloMyHeader"));
mySoapHeaderBinding.set_Part("MyHeader");
mySoapHeaderBinding.set_Use(SoapBindingUse.Literal);
// Add mySoapHeaderBinding to the 'myInputBinding' object. 
myInputBinding.get_Extensions().Add(mySoapHeaderBinding);

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, 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

Community Additions

ADD
Show: