次の方法で共有


ContractDescription.GetInheritedContracts メソッド

定義

現在のコントラクトの説明によって継承されているコントラクトの説明のコレクションを返します。

public:
 System::Collections::ObjectModel::Collection<System::ServiceModel::Description::ContractDescription ^> ^ GetInheritedContracts();
public System.Collections.ObjectModel.Collection<System.ServiceModel.Description.ContractDescription> GetInheritedContracts ();
member this.GetInheritedContracts : unit -> System.Collections.ObjectModel.Collection<System.ServiceModel.Description.ContractDescription>
Public Function GetInheritedContracts () As Collection(Of ContractDescription)

戻り値

現在のコントラクトの説明によって継承されている Collection<T> 型の ContractDescription

Collection<ContractDescription> inheretedContracts = cd.GetInheritedContracts();
Console.WriteLine("\tInherited Contracts:");
foreach (ContractDescription contractdescription in inheretedContracts)
{
    Console.WriteLine("\t\t" + contractdescription.Name);
}
Dim inheretedContracts As Collection(Of ContractDescription) = cd.GetInheritedContracts()
Console.WriteLine(Constants.vbTab & "Inherited Contracts:")
For Each contractdescription As ContractDescription In inheretedContracts
    Console.WriteLine(Constants.vbTab + Constants.vbTab + contractdescription.Name)
Next contractdescription

適用対象