Export (0) Print
Expand All

ServiceContractGenerationContext Constructor (ServiceContractGenerator, ContractDescription, CodeTypeDeclaration)

Initializes a new instance of the ServiceContractGenerationContext class using the specified contract generator, contract description, and contract code type declaration.

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

public ServiceContractGenerationContext(
	ServiceContractGenerator serviceContractGenerator,
	ContractDescription contract,
	CodeTypeDeclaration contractType
)

Parameters

serviceContractGenerator
Type: System.ServiceModel.Description.ServiceContractGenerator

The generator that generates the code for the contract.

contract
Type: System.ServiceModel.Description.ContractDescription

The contract description for the contract to be generated.

contractType
Type: System.CodeDom.CodeTypeDeclaration

The System.CodeDom.CodeTypeDeclaration for the contract code to be generated.

.NET Framework

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

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft