WebServiceBindingAttribute Constructor (String)


Initializes a new instance of the WebServiceBindingAttribute class setting the name of the binding the XML Web service method is implementing.

Namespace:   System.Web.Services
Assembly:  System.Web.Services (in System.Web.Services.dll)

public WebServiceBindingAttribute(
	string name


Type: System.String

The name of the binding an XML Web service method is implementing an operation for. Sets the Name property.

This constructor is used to specify a name for a binding defined in the XML Web service it is applied to and is a member of the default namespace.

The following example specifies a binding named LocalBinding that is defined in the BindingSample XML Web service.

.NET Framework
Available since 1.1
Return to top