This documentation is archived and is not being maintained.

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


Type: System.String

The binding configuration name for the WSHttpBindingElement.


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");

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0