SoapHeaderBinding.Use Property
.NET Framework 3.0
Specifies whether the header is encoded using rules specified by the Encoding property, or is encapsulated within a concrete XML schema.
Namespace: System.Web.Services.Description
Assembly: System.Web.Services (in system.web.services.dll)
Assembly: System.Web.Services (in system.web.services.dll)
public: property SoapBindingUse Use { SoapBindingUse get (); void set (SoapBindingUse value); }
/** @property */ public SoapBindingUse get_Use () /** @property */ public void set_Use (SoapBindingUse value)
public function get Use () : SoapBindingUse public function set Use (value : SoapBindingUse)
Not applicable.
Property Value
One of the SoapBindingUse values. The default is Default.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.Community Additions
ADD
Show: