ServiceContractGenerator Constructor (CodeCompileUnit, Configuration)

 
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.

Initializes a new instance of the ServiceContractGenerator class with the specified System.CodeDom.CodeCompileUnit instance and the specified System.Configuration.Configuration instance.

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

public ServiceContractGenerator(
	CodeCompileUnit targetCompileUnit,
	Configuration targetConfig
)

Parameters

targetCompileUnit
Type: System.CodeDom.CodeCompileUnit

The System.CodeDom.CodeCompileUnit instance to use to generate code.

targetConfig
Type: System.Configuration.Configuration

The System.Configuration.Configuration instance to use to generate binding configurations.

.NET Framework
Available since 3.0
Return to top
Show: