IAmbientProvider.GetAllAmbientValues メソッド

定義

要求されたスコープのアンビエント型またはプロパティ情報項目の列挙可能なセットを返します。

オーバーロード

名前 説明
GetAllAmbientValues(XamlType[])

要求された型に対して可能なアンビエント型のオブジェクト インスタンスの列挙可能なセットを返します。

GetAllAmbientValues(IEnumerable<XamlType>, XamlMember[])

要求されたプロパティ セットのアンビエント プロパティ情報項目の列挙可能なセットを返します。

GetAllAmbientValues(IEnumerable<XamlType>, Boolean, IEnumerable<XamlType>, XamlMember[])

要求された型とプロパティのセットのアンビエント プロパティ情報項目の列挙可能なセットを返します。

GetAllAmbientValues(XamlType[])

要求された型に対して可能なアンビエント型のオブジェクト インスタンスの列挙可能なセットを返します。

public:
 System::Collections::Generic::IEnumerable<System::Object ^> ^ GetAllAmbientValues(... cli::array <System::Xaml::XamlType ^> ^ types);
public System.Collections.Generic.IEnumerable<object> GetAllAmbientValues(params System.Xaml.XamlType[] types);
abstract member GetAllAmbientValues : System.Xaml.XamlType[] -> seq<obj>
Public Function GetAllAmbientValues (ParamArray types As XamlType()) As IEnumerable(Of Object)

パラメーター

types
XamlType[]

アンビエント型情報の取得元となる型のセット。

返品

要求された XamlType 識別子のセットの値を表すオブジェクトの列挙可能なセット。

適用対象

GetAllAmbientValues(IEnumerable<XamlType>, XamlMember[])

要求されたプロパティ セットのアンビエント プロパティ情報項目の列挙可能なセットを返します。

public:
 System::Collections::Generic::IEnumerable<System::Xaml::AmbientPropertyValue ^> ^ GetAllAmbientValues(System::Collections::Generic::IEnumerable<System::Xaml::XamlType ^> ^ ceilingTypes, ... cli::array <System::Xaml::XamlMember ^> ^ properties);
public System.Collections.Generic.IEnumerable<System.Xaml.AmbientPropertyValue> GetAllAmbientValues(System.Collections.Generic.IEnumerable<System.Xaml.XamlType> ceilingTypes, params System.Xaml.XamlMember[] properties);
abstract member GetAllAmbientValues : seq<System.Xaml.XamlType> * System.Xaml.XamlMember[] -> seq<System.Xaml.AmbientPropertyValue>
Public Function GetAllAmbientValues (ceilingTypes As IEnumerable(Of XamlType), ParamArray properties As XamlMember()) As IEnumerable(Of AmbientPropertyValue)

パラメーター

ceilingTypes
IEnumerable<XamlType>

オブジェクト グラフ内で上方向に走査する場合に評価を停止する必要がある 1 つ以上の型を指定します。 この型は、目的のアンビエント プロパティを保持します。 null でもかまいません。

properties
XamlMember[]

アンビエントと見なされるプロパティを識別する 1 つ以上のプロパティ識別子オブジェクトを指定します。

返品

要求されたプロパティ セットのアンビエント プロパティ情報項目の列挙可能なセット。 返される各 AmbientPropertyValue のプロパティ情報は、入力 propertiesのいずれかと一致します。

注釈

返される各 AmbientPropertyValue には、 XamlMember 識別子とプロパティ値が含まれます。

適用対象

GetAllAmbientValues(IEnumerable<XamlType>, Boolean, IEnumerable<XamlType>, XamlMember[])

要求された型とプロパティのセットのアンビエント プロパティ情報項目の列挙可能なセットを返します。

public:
 System::Collections::Generic::IEnumerable<System::Xaml::AmbientPropertyValue ^> ^ GetAllAmbientValues(System::Collections::Generic::IEnumerable<System::Xaml::XamlType ^> ^ ceilingTypes, bool searchLiveStackOnly, System::Collections::Generic::IEnumerable<System::Xaml::XamlType ^> ^ types, ... cli::array <System::Xaml::XamlMember ^> ^ properties);
public System.Collections.Generic.IEnumerable<System.Xaml.AmbientPropertyValue> GetAllAmbientValues(System.Collections.Generic.IEnumerable<System.Xaml.XamlType> ceilingTypes, bool searchLiveStackOnly, System.Collections.Generic.IEnumerable<System.Xaml.XamlType> types, params System.Xaml.XamlMember[] properties);
abstract member GetAllAmbientValues : seq<System.Xaml.XamlType> * bool * seq<System.Xaml.XamlType> * System.Xaml.XamlMember[] -> seq<System.Xaml.AmbientPropertyValue>
Public Function GetAllAmbientValues (ceilingTypes As IEnumerable(Of XamlType), searchLiveStackOnly As Boolean, types As IEnumerable(Of XamlType), ParamArray properties As XamlMember()) As IEnumerable(Of AmbientPropertyValue)

パラメーター

ceilingTypes
IEnumerable<XamlType>

オブジェクト グラフ内で上方向に走査する場合に評価を停止する必要がある 1 つ以上の型を指定します。 この型は、目的のアンビエント プロパティを保持します。 null でもかまいません。

searchLiveStackOnly
Boolean

true 保存されたコンテキストを使用しない場合。保存されたコンテキストを使用 false 。 既定値は false です。

types
IEnumerable<XamlType>

アンビエントと見なされる型を識別する 1 つ以上の型識別子オブジェクトを指定します。

properties
XamlMember[]

アンビエントと見なされるプロパティを識別する 1 つ以上のプロパティ識別子オブジェクトを指定します。

返品

要求された型とプロパティのセットのアンビエント プロパティ情報項目の列挙可能なセット。 返される各 AmbientPropertyValue のプロパティ情報は、入力 types または propertiesのいずれかと一致します。

注釈

返される各 AmbientPropertyValue には、 XamlMember 識別子とプロパティ値が含まれます。

この特定の GetAllAmbientValues オーバーロードは、同じパス内のアンビエント型とアンビエント プロパティをツリー内で検索できます。 このオーバーロードを使用すると、戻り値の項目の順序が GetAllAmbientValues(IEnumerable<XamlType>, XamlMember[])GetAllAmbientValues(XamlType[])とは異なります。

このオーバーロードにより、保存されたコンテキストを検索で使用することも許可されます。 GetAllAmbientValues(IEnumerable<XamlType>, XamlMember[])またはGetAllAmbientValues(XamlType[])オーバーロードは、保存されたコンテキストが使用可能な場合に暗黙的に使用します (暗黙的なsearchLiveStackOnly パラメーターがfalseされているかのように常に動作します)。 保存されたコンテキストの概念は、特定の XAML スキーマ コンテキストまたは XAML を組み込むフレームワークによって、異なる方法で処理される可能性があります。 WPF XAML 実装では、保存されたコンテキストがテンプレートの拡張や他の機能領域に使用されます。

適用対象