XamlType.IsNullable 屬性

定義

取得值,這個值表示此 XamlType 是否代表符合 XAML 定義之可為 Null 的型別。

public:
 property bool IsNullable { bool get(); };
public bool IsNullable { get; }
member this.IsNullable : bool
Public ReadOnly Property IsNullable As Boolean

屬性值

如果此 XamlType 表示可為 Null 的型別則為 true,否則為 false

備註

這個屬性會對齊 [is nullable] [MS-XAML] 規格中的資訊專案。

如果您未針對 XamlType 使用預設的內部 CLR 反映技術,則對此屬性的呼叫可以在衍生類別上 XamlTypeLookupIsNullable 用覆寫。

適用於