NamedResource.ResolveAll(ResourceContext) | resolveAll(ResourceContext) method

Applies to Windows and Windows Phone

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

Syntax


var iVectorView = namedResource.resolveAll(resourceContext);

Parameters

resourceContext

Type: ResourceContext

The context against which the NamedResource should be resolved.

Return value

Type: IVectorView<ResourceCandidate> [JavaScript/C++] | System.Collections.Generic.IReadOnlyList<ResourceCandidate> [.NET]

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.

Remarks

The resource management system for Windows Store 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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.ApplicationModel.Resources.Core
Windows::ApplicationModel::Resources::Core [C++]

Metadata

Windows.winmd

See also

NamedResource
ResourceContext
ResourceContext.GetForCurrentView

 

 

Show:
© 2014 Microsoft