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

Applies to Windows and Windows Phone

[GetValue(String) may be altered or unavailable for releases after Windows 8.1. Instead, use GetValue(String, ResourceContext).]

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

Syntax


var resourceCandidate = resourceMap.getValue(resource);

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") is treated as getValue("Caption "). Do not use "?" or "#" in resource identifiers, as they terminate the named resource path. For example, "Foo?3" is treated as "Foo".

Return value

Type: ResourceCandidate

A ResourceCandidate that describes the most appropriate candidate.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

End of client support

Windows 8.1

End of server support

Windows Server 2012 R2

Namespace

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

Metadata

Windows.winmd

See also

ResourceMap
GetValue(String, ResourceContext)

 

 

Show:
© 2015 Microsoft