Edit

Share via


IAmbientProvider.GetFirstAmbientValue Method

Definition

Returns a single ambient type or property information item from the requested set, based on which property is first encountered.

Overloads

GetFirstAmbientValue(XamlType[])

Returns the first matching object that is a possible ambient type for the requested types.

GetFirstAmbientValue(IEnumerable<XamlType>, XamlMember[])

Returns a single ambient property information item from the requested set of properties, based on which property is first encountered.

GetFirstAmbientValue(XamlType[])

Returns the first matching object that is a possible ambient type for the requested types.

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

Parameters

types
XamlType[]

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

Returns

The first result object for the requested set.

Applies to

GetFirstAmbientValue(IEnumerable<XamlType>, XamlMember[])

Returns a single ambient property information item from the requested set of properties, based on which property is first encountered.

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

properties
XamlMember[]

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

Returns

A single ambient property information item for the first ambient property value from the properties list that is found.

Remarks

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

Applies to