SoapHeaderBinding::Part Property
.NET Framework (current version)
Gets or sets a value indicating to which MessagePart within the XML Web service the SoapHeaderBinding applies.
Assembly: System.Web.Services (in System.Web.Services.dll)
Property Value
Type: System::String^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 );
.NET Framework
Available since 1.1
Available since 1.1
Show: