ContractDescription Constructor (String, String)
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Initializes a new instance of the ContractDescription class with a namespace-qualified name specified.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Parameters
- name
- Type: System.String
The name of the contract.
- ns
- Type: System.String
The namespace that contains the name of the contract.
| Exception | Condition |
|---|---|
| ArgumentNullException | name is Nothing. |
| ArgumentOutOfRangeException | name is empty. |
Show: