編集

次の方法で共有


IAmbientProvider.GetAllAmbientValues Method

Definition

Returns an enumerable set of ambient type or property information items for the requested scope.

Overloads

GetAllAmbientValues(XamlType[])

Returns an enumerable set of object instances of possible ambient types for the requested types.

GetAllAmbientValues(IEnumerable<XamlType>, XamlMember[])

Returns an enumerable set of ambient property information items for the requested set of properties.

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

Returns an enumerable set of ambient property information items for the requested set of types and properties.

GetAllAmbientValues(XamlType[])

Returns an enumerable set of object instances of possible ambient types for the requested types.

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)

Parameters

types
XamlType[]

The set of types from which to retrieve ambient type information.

Returns

An enumerable set of objects that represent the values for the requested set of XamlType identifiers.

Applies to

GetAllAmbientValues(IEnumerable<XamlType>, XamlMember[])

Returns an enumerable set of ambient property information items for the requested set of properties.

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)

Parameters

ceilingTypes
IEnumerable<XamlType>

Specifies one or more types that should stop the evaluation when they are encountered traversing upward in the object graph. This type holds the desired ambient property. May be null.

properties
XamlMember[]

Specifies one or more property identifier objects that identify the properties to be considered ambient.

Returns

An enumerable set of ambient property information items for the requested set of properties. The property information for each AmbientPropertyValue that is returned will match one of the input properties.

Remarks

Each AmbientPropertyValue that is returned contains the XamlMember identifier and a property value.

Applies to

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

Returns an enumerable set of ambient property information items for the requested set of types and 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, ... 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)

Parameters

ceilingTypes
IEnumerable<XamlType>

Specifies one or more types that should stop the evaluation when they are encountered traversing upward in the object graph. This type holds the desired ambient property. May be null.

searchLiveStackOnly
Boolean

true to not use a saved context; false to use a saved context. The default is false.

types
IEnumerable<XamlType>

Specifies one or more type identifier objects that identify the types to be considered ambient.

properties
XamlMember[]

Specifies one or more property identifier objects that identify the properties to be considered ambient.

Returns

An enumerable set of ambient property information items for the requested set of types and properties. The property information for each AmbientPropertyValue that is returned will match one of the input types or properties.

Remarks

Each AmbientPropertyValue that is returned contains the XamlMember identifier and a property value.

This particular GetAllAmbientValues overload can search for ambient types and ambient properties in the same pass through a tree. Using this overload results in an ordering of items in the return value that is different from GetAllAmbientValues(IEnumerable<XamlType>, XamlMember[]) or GetAllAmbientValues(XamlType[]).

This overload also permits the search to not use any saved context. The GetAllAmbientValues(IEnumerable<XamlType>, XamlMember[]) or GetAllAmbientValues(XamlType[]) overloads implicitly use a saved context if it is available (they always act as if an implicit searchLiveStackOnly parameter is false). The concept of a saved context is potentially handled differently by particular XAML schema contexts, or by frameworks that incorporate XAML. In the WPF XAML implementation, saved contexts are used for template expansion, as well as other feature areas.

Applies to