WSHttpBinding Constructor (String)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

configName
Type: System.String

The binding configuration name for the WSHttpBindingElement.

Exception Condition
ConfigurationErrorsException

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
Show: