ServiceContractGenerationContext 构造函数

定义

初始化 ServiceContractGenerationContext 类的新实例。

重载

ServiceContractGenerationContext(ServiceContractGenerator, ContractDescription, CodeTypeDeclaration)

使用指定的协定生成器、协定说明和协定代码类型声明初始化 ServiceContractGenerationContext 类的新实例。

ServiceContractGenerationContext(ServiceContractGenerator, ContractDescription, CodeTypeDeclaration, CodeTypeDeclaration)

使用指定的协定生成器、协定说明和协定代码类型声明初始化 ServiceContractGenerationContext 类的新实例。

ServiceContractGenerationContext(ServiceContractGenerator, ContractDescription, CodeTypeDeclaration)

使用指定的协定生成器、协定说明和协定代码类型声明初始化 ServiceContractGenerationContext 类的新实例。

public:
 ServiceContractGenerationContext(System::ServiceModel::Description::ServiceContractGenerator ^ serviceContractGenerator, System::ServiceModel::Description::ContractDescription ^ contract, System::CodeDom::CodeTypeDeclaration ^ contractType);
public ServiceContractGenerationContext (System.ServiceModel.Description.ServiceContractGenerator serviceContractGenerator, System.ServiceModel.Description.ContractDescription contract, System.CodeDom.CodeTypeDeclaration contractType);
new System.ServiceModel.Description.ServiceContractGenerationContext : System.ServiceModel.Description.ServiceContractGenerator * System.ServiceModel.Description.ContractDescription * System.CodeDom.CodeTypeDeclaration -> System.ServiceModel.Description.ServiceContractGenerationContext
Public Sub New (serviceContractGenerator As ServiceContractGenerator, contract As ContractDescription, contractType As CodeTypeDeclaration)

参数

serviceContractGenerator
ServiceContractGenerator

可为协定生成代码的生成器。

contract
ContractDescription

要生成的协定的协定说明。

contractType
CodeTypeDeclaration

要生成的协定代码的 CodeTypeDeclaration

适用于

ServiceContractGenerationContext(ServiceContractGenerator, ContractDescription, CodeTypeDeclaration, CodeTypeDeclaration)

使用指定的协定生成器、协定说明和协定代码类型声明初始化 ServiceContractGenerationContext 类的新实例。

public:
 ServiceContractGenerationContext(System::ServiceModel::Description::ServiceContractGenerator ^ serviceContractGenerator, System::ServiceModel::Description::ContractDescription ^ contract, System::CodeDom::CodeTypeDeclaration ^ contractType, System::CodeDom::CodeTypeDeclaration ^ duplexCallbackType);
public ServiceContractGenerationContext (System.ServiceModel.Description.ServiceContractGenerator serviceContractGenerator, System.ServiceModel.Description.ContractDescription contract, System.CodeDom.CodeTypeDeclaration contractType, System.CodeDom.CodeTypeDeclaration duplexCallbackType);
new System.ServiceModel.Description.ServiceContractGenerationContext : System.ServiceModel.Description.ServiceContractGenerator * System.ServiceModel.Description.ContractDescription * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeTypeDeclaration -> System.ServiceModel.Description.ServiceContractGenerationContext
Public Sub New (serviceContractGenerator As ServiceContractGenerator, contract As ContractDescription, contractType As CodeTypeDeclaration, duplexCallbackType As CodeTypeDeclaration)

参数

serviceContractGenerator
ServiceContractGenerator

可为协定生成代码的生成器。

contract
ContractDescription

要生成的协定的协定说明。

contractType
CodeTypeDeclaration

要生成的协定代码的 CodeTypeDeclaration

duplexCallbackType
CodeTypeDeclaration

要生成的双向协定代码的 CodeTypeDeclaration

适用于