GetInheritedContracts Method
Collapse the table of content
Expand the table of content

ContractDescription.GetInheritedContracts Method ()


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.

Legacy Code Example

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
© 2015 Microsoft