XamlType.LookupAllowedContentTypes メソッド

定義

この ContentPropertyXamlType 値として使用できる、型のリストを返します。

protected:
 virtual System::Collections::Generic::IList<System::Xaml::XamlType ^> ^ LookupAllowedContentTypes();
protected virtual System.Collections.Generic.IList<System.Xaml.XamlType> LookupAllowedContentTypes ();
abstract member LookupAllowedContentTypes : unit -> System.Collections.Generic.IList<System.Xaml.XamlType>
override this.LookupAllowedContentTypes : unit -> System.Collections.Generic.IList<System.Xaml.XamlType>
Protected Overridable Function LookupAllowedContentTypes () As IList(Of XamlType)

戻り値

使用可能なコンテンツ型のリスト。

注釈

呼び出し元が から AllowedContentTypes値を取得すると、このメソッドを呼び出すことができます。

特定のコンテンツ タイプに対して として CanAssignTo 評価される型は、 の目的で複数の AllowedContentTypes種類と見なされません。

既定の実装では、 (ContentWrappers、、ContentPropertyまたは ItemType) の他のXamlTypeプロパティを使用して結果を取得できます。 上記のプロパティ リストのオーバーライドは Lookup 、この決定でも呼び出すことができます。

既定の内部 CLR リフレクションに依存せず、XAML 型のシステム情報または型のスキーマ情報をレポートするためにメタデータまたはその他の手法を使用している場合は、このメソッドをオーバーライドします。

適用対象