WebServiceBindingAttribute Constructor (String, String, String)


Initializes a new instance of the WebServiceBindingAttribute class.

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

public WebServiceBindingAttribute(
	string name,
	string ns,
	string location


Type: System.String

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

Type: System.String

The namespace associated with the binding. Sets the Namespace property.

Type: System.String

The location where the binding is defined.

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

The following example specifies a binding named RemoteBinding that is a member of the http://www.contoso.com/MyBinding namespace and defined at http://www.contoso.com/MyService.asmx?wsdl.

.NET Framework
Available since 1.1
Return to top