ServiceContractGenerator.GenerateServiceContractType Method (ContractDescription)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Generates a service contract type from the specified System.ServiceModel.Description.ContractDescription instance.

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

public CodeTypeReference GenerateServiceContractType(
	ContractDescription contractDescription
)

Parameters

contractDescription
Type: System.ServiceModel.Description.ContractDescription

The ContractDescription to use to generate the contract type.

Return Value

Type: System.CodeDom.CodeTypeReference

A System.CodeDom.CodeTypeReference instance for the generated contract type.

Other code artifacts may also get generated as specified by using the ServiceContractGenerator.Options property.

.NET Framework
Available since 3.0
Return to top
Show: