ContractDescription.Operations 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得與合約關聯的作業描述的集合。
public:
property System::ServiceModel::Description::OperationDescriptionCollection ^ Operations { System::ServiceModel::Description::OperationDescriptionCollection ^ get(); };
public System.ServiceModel.Description.OperationDescriptionCollection Operations { get; }
member this.Operations : System.ServiceModel.Description.OperationDescriptionCollection
Public ReadOnly Property Operations As OperationDescriptionCollection
屬性值
包含與合約描述關聯的作業描述的 OperationDescriptionCollection。
範例
OperationDescriptionCollection odc = cd.Operations;
Console.WriteLine("\tDisplay Operations:");
foreach (OperationDescription od in odc)
{
Console.WriteLine("\t\t" + od.Name);
}
Dim odc As OperationDescriptionCollection = cd.Operations
Console.WriteLine(Constants.vbTab & "Display Operations:")
For Each od As OperationDescription In odc
Console.WriteLine(Constants.vbTab + Constants.vbTab + od.Name)
Next od