ContractDescription.ContractType Property

 

Gets or sets the contract type that the contract description specifies.

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

public Type ContractType { get; set; }

Property Value

Type: System.Type

The Type of contract that the contract description specifies.

The ContractType property is not serializable, so it is only available when the description is bound to runtime. It cannot be imported or exported as part of the metadata.

Type contractType = cd.ContractType;
Console.WriteLine("\tContract type: {0}", contractType.ToString());

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: