OperationContractGenerationContext 构造函数

定义

初始化 OperationContractGenerationContext 类的新实例。

重载

OperationContractGenerationContext(ServiceContractGenerator, ServiceContractGenerationContext, OperationDescription, CodeTypeDeclaration, CodeMemberMethod)

使用指定的协定生成器、协定上下文、操作说明、代码类型声明、同步方法和任务方法初始化 OperationContractGenerationContext 类的新实例。

OperationContractGenerationContext(ServiceContractGenerator, ServiceContractGenerationContext, OperationDescription, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod)

使用指定的协定生成器、协定上下文、操作说明、代码类型声明和方法初始化 OperationContractGenerationContext 类的新实例。

OperationContractGenerationContext(ServiceContractGenerator, ServiceContractGenerationContext, OperationDescription, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod, CodeMemberMethod)

初始化 OperationContractGenerationContext 类的新实例。

OperationContractGenerationContext(ServiceContractGenerator, ServiceContractGenerationContext, OperationDescription, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod, CodeMemberMethod, CodeMemberMethod)

使用指定的协定生成器、协定上下文、操作说明、代码类型声明、同步方法、开始方法和方法初始化 OperationContractGenerationContext 类的新实例。

OperationContractGenerationContext(ServiceContractGenerator, ServiceContractGenerationContext, OperationDescription, CodeTypeDeclaration, CodeMemberMethod)

使用指定的协定生成器、协定上下文、操作说明、代码类型声明、同步方法和任务方法初始化 OperationContractGenerationContext 类的新实例。

public:
 OperationContractGenerationContext(System::ServiceModel::Description::ServiceContractGenerator ^ serviceContractGenerator, System::ServiceModel::Description::ServiceContractGenerationContext ^ contract, System::ServiceModel::Description::OperationDescription ^ operation, System::CodeDom::CodeTypeDeclaration ^ declaringType, System::CodeDom::CodeMemberMethod ^ method);
public OperationContractGenerationContext (System.ServiceModel.Description.ServiceContractGenerator serviceContractGenerator, System.ServiceModel.Description.ServiceContractGenerationContext contract, System.ServiceModel.Description.OperationDescription operation, System.CodeDom.CodeTypeDeclaration declaringType, System.CodeDom.CodeMemberMethod method);
new System.ServiceModel.Description.OperationContractGenerationContext : System.ServiceModel.Description.ServiceContractGenerator * System.ServiceModel.Description.ServiceContractGenerationContext * System.ServiceModel.Description.OperationDescription * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeMemberMethod -> System.ServiceModel.Description.OperationContractGenerationContext
Public Sub New (serviceContractGenerator As ServiceContractGenerator, contract As ServiceContractGenerationContext, operation As OperationDescription, declaringType As CodeTypeDeclaration, method As CodeMemberMethod)

参数

serviceContractGenerator
ServiceContractGenerator

生成代码的服务协定生成器。

contract
ServiceContractGenerationContext

协定及其生成上下文。

operation
OperationDescription

要生成的操作的操作说明。

declaringType
CodeTypeDeclaration

声明代码类型。

method
CodeMemberMethod

要生成的方法。

适用于

OperationContractGenerationContext(ServiceContractGenerator, ServiceContractGenerationContext, OperationDescription, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod)

使用指定的协定生成器、协定上下文、操作说明、代码类型声明和方法初始化 OperationContractGenerationContext 类的新实例。

public:
 OperationContractGenerationContext(System::ServiceModel::Description::ServiceContractGenerator ^ serviceContractGenerator, System::ServiceModel::Description::ServiceContractGenerationContext ^ contract, System::ServiceModel::Description::OperationDescription ^ operation, System::CodeDom::CodeTypeDeclaration ^ declaringType, System::CodeDom::CodeMemberMethod ^ syncMethod, System::CodeDom::CodeMemberMethod ^ taskMethod);
public OperationContractGenerationContext (System.ServiceModel.Description.ServiceContractGenerator serviceContractGenerator, System.ServiceModel.Description.ServiceContractGenerationContext contract, System.ServiceModel.Description.OperationDescription operation, System.CodeDom.CodeTypeDeclaration declaringType, System.CodeDom.CodeMemberMethod syncMethod, System.CodeDom.CodeMemberMethod taskMethod);
new System.ServiceModel.Description.OperationContractGenerationContext : System.ServiceModel.Description.ServiceContractGenerator * System.ServiceModel.Description.ServiceContractGenerationContext * System.ServiceModel.Description.OperationDescription * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeMemberMethod * System.CodeDom.CodeMemberMethod -> System.ServiceModel.Description.OperationContractGenerationContext
Public Sub New (serviceContractGenerator As ServiceContractGenerator, contract As ServiceContractGenerationContext, operation As OperationDescription, declaringType As CodeTypeDeclaration, syncMethod As CodeMemberMethod, taskMethod As CodeMemberMethod)

参数

serviceContractGenerator
ServiceContractGenerator

生成代码的服务协定生成器。

contract
ServiceContractGenerationContext

协定及其生成上下文。

operation
OperationDescription

要生成的操作的操作说明。

declaringType
CodeTypeDeclaration

声明代码类型。

syncMethod
CodeMemberMethod

待生成的同步方法。

taskMethod
CodeMemberMethod

使用的目标方法。

适用于

OperationContractGenerationContext(ServiceContractGenerator, ServiceContractGenerationContext, OperationDescription, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod, CodeMemberMethod)

初始化 OperationContractGenerationContext 类的新实例。

public:
 OperationContractGenerationContext(System::ServiceModel::Description::ServiceContractGenerator ^ serviceContractGenerator, System::ServiceModel::Description::ServiceContractGenerationContext ^ contract, System::ServiceModel::Description::OperationDescription ^ operation, System::CodeDom::CodeTypeDeclaration ^ declaringType, System::CodeDom::CodeMemberMethod ^ syncMethod, System::CodeDom::CodeMemberMethod ^ beginMethod, System::CodeDom::CodeMemberMethod ^ endMethod);
public OperationContractGenerationContext (System.ServiceModel.Description.ServiceContractGenerator serviceContractGenerator, System.ServiceModel.Description.ServiceContractGenerationContext contract, System.ServiceModel.Description.OperationDescription operation, System.CodeDom.CodeTypeDeclaration declaringType, System.CodeDom.CodeMemberMethod syncMethod, System.CodeDom.CodeMemberMethod beginMethod, System.CodeDom.CodeMemberMethod endMethod);
new System.ServiceModel.Description.OperationContractGenerationContext : System.ServiceModel.Description.ServiceContractGenerator * System.ServiceModel.Description.ServiceContractGenerationContext * System.ServiceModel.Description.OperationDescription * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeMemberMethod * System.CodeDom.CodeMemberMethod * System.CodeDom.CodeMemberMethod -> System.ServiceModel.Description.OperationContractGenerationContext
Public Sub New (serviceContractGenerator As ServiceContractGenerator, contract As ServiceContractGenerationContext, operation As OperationDescription, declaringType As CodeTypeDeclaration, syncMethod As CodeMemberMethod, beginMethod As CodeMemberMethod, endMethod As CodeMemberMethod)

参数

serviceContractGenerator
ServiceContractGenerator

生成代码的服务协定生成器。

contract
ServiceContractGenerationContext

协定及其生成上下文。

operation
OperationDescription

要生成的操作的操作说明。

declaringType
CodeTypeDeclaration

声明代码类型。

syncMethod
CodeMemberMethod

同步方法。

beginMethod
CodeMemberMethod

异步开始方法。

endMethod
CodeMemberMethod

异步结束方法。

适用于

OperationContractGenerationContext(ServiceContractGenerator, ServiceContractGenerationContext, OperationDescription, CodeTypeDeclaration, CodeMemberMethod, CodeMemberMethod, CodeMemberMethod, CodeMemberMethod)

使用指定的协定生成器、协定上下文、操作说明、代码类型声明、同步方法、开始方法和方法初始化 OperationContractGenerationContext 类的新实例。

public:
 OperationContractGenerationContext(System::ServiceModel::Description::ServiceContractGenerator ^ serviceContractGenerator, System::ServiceModel::Description::ServiceContractGenerationContext ^ contract, System::ServiceModel::Description::OperationDescription ^ operation, System::CodeDom::CodeTypeDeclaration ^ declaringType, System::CodeDom::CodeMemberMethod ^ syncMethod, System::CodeDom::CodeMemberMethod ^ beginMethod, System::CodeDom::CodeMemberMethod ^ endMethod, System::CodeDom::CodeMemberMethod ^ taskMethod);
public OperationContractGenerationContext (System.ServiceModel.Description.ServiceContractGenerator serviceContractGenerator, System.ServiceModel.Description.ServiceContractGenerationContext contract, System.ServiceModel.Description.OperationDescription operation, System.CodeDom.CodeTypeDeclaration declaringType, System.CodeDom.CodeMemberMethod syncMethod, System.CodeDom.CodeMemberMethod beginMethod, System.CodeDom.CodeMemberMethod endMethod, System.CodeDom.CodeMemberMethod taskMethod);
new System.ServiceModel.Description.OperationContractGenerationContext : System.ServiceModel.Description.ServiceContractGenerator * System.ServiceModel.Description.ServiceContractGenerationContext * System.ServiceModel.Description.OperationDescription * System.CodeDom.CodeTypeDeclaration * System.CodeDom.CodeMemberMethod * System.CodeDom.CodeMemberMethod * System.CodeDom.CodeMemberMethod * System.CodeDom.CodeMemberMethod -> System.ServiceModel.Description.OperationContractGenerationContext
Public Sub New (serviceContractGenerator As ServiceContractGenerator, contract As ServiceContractGenerationContext, operation As OperationDescription, declaringType As CodeTypeDeclaration, syncMethod As CodeMemberMethod, beginMethod As CodeMemberMethod, endMethod As CodeMemberMethod, taskMethod As CodeMemberMethod)

参数

serviceContractGenerator
ServiceContractGenerator

生成代码的服务协定生成器。

contract
ServiceContractGenerationContext

协定及其生成上下文。

operation
OperationDescription

要生成的操作的操作说明。

declaringType
CodeTypeDeclaration

声明代码类型。

syncMethod
CodeMemberMethod

待生成的同步方法。

beginMethod
CodeMemberMethod

异步开始方法。

endMethod
CodeMemberMethod

异步结束方法。

taskMethod
CodeMemberMethod

使用的目标方法。

适用于