Ανάγνωση στα Αγγλικά Επεξεργασία

Κοινή χρήση μέσω


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<object> GetAllAmbientValues (params System.Xaml.XamlType[] types);

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

.NET Framework 4.8.1 και άλλες εκδόσεις
Προϊόν Εκδόσεις
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

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, params System.Xaml.XamlMember[] properties);

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

.NET Framework 4.8.1 και άλλες εκδόσεις
Προϊόν Εκδόσεις
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

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, params System.Xaml.XamlMember[] properties);

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

.NET Framework 4.8.1 και άλλες εκδόσεις
Προϊόν Εκδόσεις
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9