ContractDescription.Operations ContractDescription.Operations ContractDescription.Operations ContractDescription.Operations Property

Définition

Obtient la collection de descriptions d'opérations associées au contrat.Gets the collection of operation descriptions associated with the contract.

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

Valeur de propriété

La OperationDescriptionCollection qui contient les descriptions d'opérations associées à la description du contrat.The OperationDescriptionCollection that contains the operation descriptions associated with the contract description.

Exemples

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

S’applique à