SfcMetadataDiscovery.GetParentsFromType(Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
該子類型實例可能擁有的有效父型別清單。 通常只有一種類型可以成為父母,但有時會有更多種類。
public static System.Collections.Generic.List<Type> GetParentsFromType(Type childType);
static member GetParentsFromType : Type -> System.Collections.Generic.List<Type>
Public Shared Function GetParentsFromType (childType As Type) As List(Of Type)
參數
- childType
- Type
傳回
null 表示該型別沒有父型,否則可能的父型別清單