This documentation is archived and is not being maintained.
SoapOperationBinding.Style Property
.NET Framework 1.1
Gets or sets the type of SOAP binding used by the SoapOperationBinding.
[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] ' Create the 'SoapOperationBinding' object for the 'SOAP' protocol. Dim mySoapOperationBinding As New SoapOperationBinding() mySoapOperationBinding.SoapAction = "http://tempuri.org/AddNumbers" mySoapOperationBinding.Style = SoapBindingStyle.Document ' Add the 'SoapOperationBinding' object to 'OperationBinding' object. myOperationBinding.Extensions.Add(mySoapOperationBinding) [C#] // Create the 'SoapOperationBinding' object for the 'SOAP' protocol. SoapOperationBinding mySoapOperationBinding = new SoapOperationBinding(); mySoapOperationBinding.SoapAction = "http://tempuri.org/AddNumbers"; mySoapOperationBinding.Style = SoapBindingStyle.Document; // Add the 'SoapOperationBinding' object to 'OperationBinding' object. myOperationBinding.Extensions.Add(mySoapOperationBinding); [C++] // Create the 'SoapOperationBinding' object for the 'SOAP' protocol. SoapOperationBinding* mySoapOperationBinding = new SoapOperationBinding(); mySoapOperationBinding->SoapAction = S"http://tempuri.org/AddNumbers"; mySoapOperationBinding->Style = SoapBindingStyle::Document; // Add the 'SoapOperationBinding' object to 'OperationBinding' object. myOperationBinding->Extensions->Add(mySoapOperationBinding);
[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
SoapOperationBinding Class | SoapOperationBinding Members | System.Web.Services.Description Namespace
Show: