語言

XamlType.IsDictionary 屬性

定義

會得到一個值,指示是否 XamlType 代表字典,依據 XAML 定義。

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

屬性值

true若代表XamlType字典;否則,。 false

備註

此特性與 [is dictionary] [MS-XAML] 規範中的資訊項目相符。

如果你不使用預設的內部 CLR 反射技術, XamlType呼叫此屬性可能會對衍生類別進行 LookupCollectionKind 覆寫 XamlType 。 欲了解更多關於回傳值及其他行為的資訊,請參閱此類型的文件 LookupCollectionKind 。

適用於