Export (0) Print
Expand All

WSHttpBinding Constructor (String)

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 WSHttpBinding(
	string configName
)

Parameters

configName
Type: System.String

The binding configuration name for the WSHttpBindingElement.

ExceptionCondition
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft