ContractDescription.Operations Property

 

Gets the collection of operation descriptions associated with the contract.

Namespace:   System.ServiceModel.Description
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public OperationDescriptionCollection Operations { get; }

Property Value

Type: System.ServiceModel.Description.OperationDescriptionCollection

The OperationDescriptionCollection that contains the operation descriptions associated with the contract description.

OperationDescriptionCollection odc = cd.Operations;
Console.WriteLine("\tDisplay Operations:");
foreach (OperationDescription od in odc)
{
    Console.WriteLine("\t\t" + od.Name);
}

Universal Windows Platform
Available since 8
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: