WSHttpBinding Constructor (String)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Initializes a new instance of the WSHttpBinding class with a binding specified by its configuration name.

Namespace:   System.ServiceModel
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

Public Sub New (
	configName As String


Type: System.String

The binding configuration name for the WSHttpBindingElement.

Exception Condition

The binding element with the name configName was not found.

The following example shows how to initialize a new instance of the WSHttpBinding class with a string argument.

' Set the IssuerBinding to a WSHttpBinding loaded from config
b.Security.Message.IssuerBinding = New WSHttpBinding("Issuer")

.NET Framework
Available since 3.0
Return to top