XamlType.LookupIsConstructible 方法

定義

傳回值,這個值表示此 XamlType 是否代表符合 XAML 定義的可建構型別。

protected:
 virtual bool LookupIsConstructible();
protected virtual bool LookupIsConstructible ();
abstract member LookupIsConstructible : unit -> bool
override this.LookupIsConstructible : unit -> bool
Protected Overridable Function LookupIsConstructible () As Boolean

傳回

Boolean

如果這個 XamlType 表示可建構的型別則為 true,否則為 false

備註

呼叫 即可叫 IsConstructible 用這個方法。

預設實作會在 上使用 UnderlyingType CLR 反映。 此類型必須是具象、非巢狀和封閉式。 預設實作會檢查類型是否為實值型別和 的傳 ConstructionRequiresArguments 回。 若為 Null UnderlyingType ,這個方法會傳 true 回 。

如果您想要 IsConstructible 傳回與預設內部反映啟用不同的值,請覆寫這個方法。

適用於