Compartir vía


ContractDescription.Operations Propiedad

Definición

Obtiene la colección de descripciones de la operación asociada al contrato.

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

Valor de propiedad

OperationDescriptionCollection

La OperationDescriptionCollection que contiene las descripciones de la operación asociadas a la descripción del contrato.

Ejemplos

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

Se aplica a