0 out of 1 rated this helpful - Rate this topic

ResourceMap.GetValue(String, ResourceContext) | getValue(String, ResourceContext) method

Returns the most appropriate candidate for a resource that is specified by a resource identifier for the supplied context.

Syntax


var resourceCandidate = resourceMap.getValue(resource, context);

Parameters

resource

Type: String [JavaScript] | Platform::String [C++]

A resource specified as a name or reference.

Note  The resource identifier is treated as a URI fragment, subject to URI semantics. For example, getValue("Caption%20", context) is treated as getValue("Caption ", context). Do not use "?" or "#" in resource identifiers, as they terminate the named resource path. For example, "Foo?3" is treated as "Foo".

context

Type: ResourceContext

The context for which to select the most appropriate candidate.

Return value

Type: ResourceCandidate

A ResourceCandidate that describes the most appropriate candidate.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

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

Metadata

Windows.winmd

See also

ResourceMap
GetValue(String)

 

 

Build date: 12/4/2012

© 2013 Microsoft. All rights reserved.