Share via


NamedResource.ResolveAll Method

Definition

Overloads

ResolveAll()

Resolves this NamedResource object against the default context and returns a list of all possible candidates in preference order.

Note

ResolveAll may be altered or unavailable for releases after Windows 8.1. Instead, use ResolveAll(ResourceContext).

ResolveAll(ResourceContext)

Resolves this NamedResource object against a supplied context and returns a list of all possible candidates in preference order.

ResolveAll()

Resolves this NamedResource object against the default context and returns a list of all possible candidates in preference order.

Note

ResolveAll may be altered or unavailable for releases after Windows 8.1. Instead, use ResolveAll(ResourceContext).

public:
 virtual IVectorView<ResourceCandidate ^> ^ ResolveAll() = ResolveAll;
/// [Windows.Foundation.Metadata.Deprecated("ResolveAll may be altered or unavailable for releases after Windows 8.1. Instead, use ResolveAll(ResourceContext).", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.Overload("ResolveAll")]
IVectorView<ResourceCandidate> ResolveAll();
/// [Windows.Foundation.Metadata.Overload("ResolveAll")]
/// [Windows.Foundation.Metadata.Deprecated("ResolveAll may be altered or unavailable for releases after Windows 8.1. Instead, use ResolveAll(ResourceContext).", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
IVectorView<ResourceCandidate> ResolveAll();
/// [Windows.Foundation.Metadata.Overload("ResolveAll")]
IVectorView<ResourceCandidate> ResolveAll();
[Windows.Foundation.Metadata.Deprecated("ResolveAll may be altered or unavailable for releases after Windows 8.1. Instead, use ResolveAll(ResourceContext).", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.Overload("ResolveAll")]
public IReadOnlyList<ResourceCandidate> ResolveAll();
[Windows.Foundation.Metadata.Overload("ResolveAll")]
[Windows.Foundation.Metadata.Deprecated("ResolveAll may be altered or unavailable for releases after Windows 8.1. Instead, use ResolveAll(ResourceContext).", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public IReadOnlyList<ResourceCandidate> ResolveAll();
[Windows.Foundation.Metadata.Overload("ResolveAll")]
public IReadOnlyList<ResourceCandidate> ResolveAll();
function resolveAll()
Public Function ResolveAll () As IReadOnlyList(Of ResourceCandidate)

Returns

A list of ResourceCandidate objects, in order of preference. The object in first position in the list is the most appropriate candidate for the corresponding context, and the object in last position is the least appropriate.

Attributes

See also

Applies to

ResolveAll(ResourceContext)

Resolves this NamedResource object against a supplied context and returns a list of all possible candidates in preference order.

public:
 virtual IVectorView<ResourceCandidate ^> ^ ResolveAll(ResourceContext ^ resourceContext) = ResolveAll;
/// [Windows.Foundation.Metadata.Overload("ResolveAllForContext")]
IVectorView<ResourceCandidate> ResolveAll(ResourceContext const& resourceContext);
[Windows.Foundation.Metadata.Overload("ResolveAllForContext")]
public IReadOnlyList<ResourceCandidate> ResolveAll(ResourceContext resourceContext);
function resolveAll(resourceContext)
Public Function ResolveAll (resourceContext As ResourceContext) As IReadOnlyList(Of ResourceCandidate)

Parameters

resourceContext
ResourceContext

The context against which the NamedResource should be resolved.

Returns

A list of ResourceCandidate objects, in order of preference. The object in first position in the list is the most appropriate candidate for the corresponding context, and the object in last position is the least appropriate.

Attributes

Remarks

The resource management system for UWP apps supports the tailoring of resources for scale. Starting in Windows 8.1, different views owned by an app are able to display simultaneously on different display devices that may use different scales. In this way, scale is a per-view characteristic.

Since the ResolveAll method returns all candidates for a NamedResource in relation to a runtime context, and since the scale qualifier of a ResourceContext depends on the associated view, the ResolveAll should always be called passing a ResourceContext object obtained from the view in which the resource will be used.

See the ResourceContext.GetForCurrentView method.

See also

Applies to