This documentation is archived and is not being maintained.
SoapBinding.Style Property
.NET Framework 1.1
Specifies the type of SOAP binding used by the current SoapBinding.
[Visual Basic] Public Property Style As SoapBindingStyle [C#] public SoapBindingStyle Style {get; set;} [C++] public: __property SoapBindingStyle get_Style(); public: __property void set_Style(SoapBindingStyle); [JScript] public function get Style() : SoapBindingStyle; public function set Style(SoapBindingStyle);
Property Value
One of the SoapBindingStyle values. The default is Document.
Example
[Visual Basic] Dim mySoapBinding As New SoapBinding() mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http" mySoapBinding.Style = SoapBindingStyle.Document ' Add the 'SoapBinding' object to the 'Binding' object. myBinding.Extensions.Add(mySoapBinding) [C#] SoapBinding mySoapBinding = new SoapBinding(); mySoapBinding.Transport = "http://schemas.xmlsoap.org/soap/http"; mySoapBinding.Style = SoapBindingStyle.Document; // Add the 'SoapBinding' object to the 'Binding' object. myBinding.Extensions.Add(mySoapBinding); [C++] SoapBinding* mySoapBinding = new SoapBinding(); mySoapBinding->Transport = S"http://schemas.xmlsoap.org/soap/http"; mySoapBinding->Style = SoapBindingStyle::Document; // Add the 'SoapBinding' object to the 'Binding' object. myBinding->Extensions->Add(mySoapBinding);
[JScript] No example is available for JScript. To view a Visual Basic, C#, or C++ example, click the Language Filter button
in the upper-left corner of the page.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
SoapBinding Class | SoapBinding Members | System.Web.Services.Description Namespace
Show: