Ler em inglês Editar

Compartilhar 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.

C#
public object GetFirstAmbientValue(params System.Xaml.XamlType[] types);

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

.NET Framework 4.8.1 e outras versões
Produto Versões
.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, 10

GetFirstAmbientValue(IEnumerable<XamlType>, XamlMember[])

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

C#
public System.Xaml.AmbientPropertyValue GetFirstAmbientValue(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.

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

.NET Framework 4.8.1 e outras versões
Produto Versões
.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, 10