OperationContractGenerationContext 构造函数

定义

初始化 OperationContractGenerationContext 类的新实例。Initializes a new instance of the OperationContractGenerationContext class.

重载

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

使用指定的协定生成器、协定上下文、操作说明、代码类型声明、同步方法和任务方法初始化 OperationContractGenerationContext 类的新实例。Initializes a new instance of the OperationContractGenerationContext class using the specified contract generator, contract context, operation description, code type declaration, synchronization method and task method.

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

使用指定的协定生成器、协定上下文、操作说明、代码类型声明和方法初始化 OperationContractGenerationContext 类的新实例。Initializes a new instance of the OperationContractGenerationContext class using the specified contract generator, contract context, operation description, code type declaration, and method.

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

初始化 OperationContractGenerationContext 类的新实例。Initializes a new instance of the OperationContractGenerationContext class.

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

使用指定的协定生成器、协定上下文、操作说明、代码类型声明、同步方法、开始方法和方法初始化 OperationContractGenerationContext 类的新实例。Initializes a new instance of the OperationContractGenerationContext class using the specified contract generator, contract context, operation description, code type declaration, synchronization method, begin method, end method, and task method.

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

使用指定的协定生成器、协定上下文、操作说明、代码类型声明、同步方法和任务方法初始化 OperationContractGenerationContext 类的新实例。Initializes a new instance of the OperationContractGenerationContext class using the specified contract generator, contract context, operation description, code type declaration, synchronization method and task 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);
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

生成代码的服务协定生成器。The service contract generator that generates the code.

contract
ServiceContractGenerationContext

协定及其生成上下文。The contract and its generation context.

operation
OperationDescription

要生成的操作的操作说明。The operation description for the operation to be generated.

declaringType
CodeTypeDeclaration

声明代码类型。The declaring code type.

method
CodeMemberMethod

要生成的方法。The method to be generated.

适用于

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

使用指定的协定生成器、协定上下文、操作说明、代码类型声明和方法初始化 OperationContractGenerationContext 类的新实例。Initializes a new instance of the OperationContractGenerationContext class using the specified contract generator, contract context, operation description, code type declaration, and 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 ^ 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

生成代码的服务协定生成器。The service contract generator that generates the code.

contract
ServiceContractGenerationContext

协定及其生成上下文。The contract and its generation context.

operation
OperationDescription

要生成的操作的操作说明。The operation description for the operation to be generated.

declaringType
CodeTypeDeclaration

声明代码类型。The declaring code type.

syncMethod
CodeMemberMethod

待生成的同步方法。The synchronization method to be generated.

taskMethod
CodeMemberMethod

使用的目标方法。The task method used.

适用于

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

初始化 OperationContractGenerationContext 类的新实例。Initializes a new instance of the OperationContractGenerationContext class.

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

生成代码的服务协定生成器。The service contract generator that generates the code.

contract
ServiceContractGenerationContext

协定及其生成上下文。The contract and its generation context.

operation
OperationDescription

要生成的操作的操作说明。The operation description for the operation to be generated.

declaringType
CodeTypeDeclaration

声明代码类型。The declaring code type.

syncMethod
CodeMemberMethod

同步方法。The synchronous method.

beginMethod
CodeMemberMethod

异步开始方法。The asynchronous begin method.

endMethod
CodeMemberMethod

异步结束方法。The asynchronous end method.

适用于

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

使用指定的协定生成器、协定上下文、操作说明、代码类型声明、同步方法、开始方法和方法初始化 OperationContractGenerationContext 类的新实例。Initializes a new instance of the OperationContractGenerationContext class using the specified contract generator, contract context, operation description, code type declaration, synchronization method, begin method, end method, and task 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 ^ 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

生成代码的服务协定生成器。The service contract generator that generates the code.

contract
ServiceContractGenerationContext

协定及其生成上下文。The contract and its generation context.

operation
OperationDescription

要生成的操作的操作说明。The operation description for the operation to be generated.

declaringType
CodeTypeDeclaration

声明代码类型。The declaring code type.

syncMethod
CodeMemberMethod

待生成的同步方法。The synchronization method to be generated.

beginMethod
CodeMemberMethod

异步开始方法。The asynchronous begin method.

endMethod
CodeMemberMethod

异步结束方法。The asynchronous end method.

taskMethod
CodeMemberMethod

使用的目标方法。The task method used.

适用于