OperationDescription(String, ContractDescription) 构造函数

定义

使用指定的名称和协定说明初始化 OperationDescription 类的新实例。

public:
 OperationDescription(System::String ^ name, System::ServiceModel::Description::ContractDescription ^ declaringContract);
public OperationDescription (string name, System.ServiceModel.Description.ContractDescription declaringContract);
new System.ServiceModel.Description.OperationDescription : string * System.ServiceModel.Description.ContractDescription -> System.ServiceModel.Description.OperationDescription
Public Sub New (name As String, declaringContract As ContractDescription)

参数

name
String

操作说明的名称。

declaringContract
ContractDescription

用于初始化操作说明的 ContractDescription

适用于