共用方式為


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

適用於