ReflectionTypeLoadException.Types 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得模組中定義並載入的類別陣列。
public:
property cli::array <Type ^> ^ Types { cli::array <Type ^> ^ get(); };
public Type[] Types { get; }
public Type?[] Types { get; }
public Type[]? Types { get; }
member this.Types : Type[]
Public ReadOnly Property Types As Type()
屬性值
Type[]
一個型別 Type 的陣列,包含模組中定義並載入的類別。 這個陣列可以包含一些 null 值。
備註
屬性會LoaderExceptions取得一個與該Types陣列平行的型別Exception陣列。 當反射無法載入類別時,這個陣列會包含空值。