Export (0) Print
Expand All

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)

'Declaration
Public Property ContractType As Type

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.

			Dim contractType As Type = cd.ContractType
			Console.WriteLine(Constants.vbTab & "Contract type: {0}", contractType.ToString())

.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