ContractDescription.GetInheritedContracts Method ()


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns a collection of contract descriptions that are inherited by the current contract description.

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

public Collection<ContractDescription> GetInheritedContracts()

Return Value

Type: System.Collections.ObjectModel.Collection<ContractDescription>

The Collection<T> of type ContractDescription that is inherited by the current contract description.

Collection<ContractDescription> inheretedContracts = cd.GetInheritedContracts();
Console.WriteLine("\tInherited Contracts:");
foreach (ContractDescription contractdescription in inheretedContracts)
    Console.WriteLine("\t\t" + contractdescription.Name);

.NET Framework
Available since 3.0
Return to top