XamlType.ItemType 屬性

定義

取得值,這個值提供此 XamlTypeItems 屬性的型別資訊。

public:
 property System::Xaml::XamlType ^ ItemType { System::Xaml::XamlType ^ get(); };
public System.Xaml.XamlType ItemType { get; }
member this.ItemType : System.Xaml.XamlType
Public ReadOnly Property ItemType As XamlType

屬性值

XamlType

集合中之項目型別的 XamlType 物件,如果此 XamlType 不表示集合,則為 null

備註

只有在這個 XamlType 表示集合 (IsCollection true) 時,這個屬性才相關。 屬性 Items 是任何屬性都會保存該集合或陣列類型中的專案。

如果您未針對 XamlType 使用預設的內部 CLR 反映技術,則對此屬性的呼叫可以在衍生類別上 XamlTypeLookupItemType 用覆寫。 如需傳回值和其他行為的詳細資訊,請參閱此類型的檔 LookupItemType

適用於