Type.IsConstructedGenericType 屬性

定義

取得值,指出這個物件是否表示建構的泛型類型。 您可以建立已建構之泛型類型的執行個體。

public:
 abstract property bool IsConstructedGenericType { bool get(); };
public:
 virtual property bool IsConstructedGenericType { bool get(); };
public abstract bool IsConstructedGenericType { get; }
public virtual bool IsConstructedGenericType { get; }
member this.IsConstructedGenericType : bool
Public MustOverride ReadOnly Property IsConstructedGenericType As Boolean
Public Overridable ReadOnly Property IsConstructedGenericType As Boolean

屬性值

如果這個物件代表建構的泛型類型,則為 true,否則為 false

備註

建構的泛型型別已針對其所有泛型型別參數提供明確的型別。 也稱為封閉式泛型型別。

當此屬性為 true時,您可以建立目前類型的實例;如果是 false,則無法建立。

適用於