Export (0) Print
Expand All

ContractDescription Constructor (String, String)

Initializes a new instance of the ContractDescription class with a namespace-qualified name specified.

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

public:
ContractDescription(
	String^ name, 
	String^ ns
)

Parameters

name
Type: System::String

The name of the contract.

ns
Type: System::String

The namespace that contains the name of the contract.

ExceptionCondition
ArgumentNullException

name is nullptr.

ArgumentOutOfRangeException

name is empty.

The namespace can be an empty string ("").

No code example is currently available or this language may not be supported.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8
Show:
© 2015 Microsoft