ResourceMap.Lookup | lookup method

Applies to Windows and Windows Phone

Returns the NamedResource at the specified resource identifier in the map.

Syntax


var namedResource = resourceMap.lookup(key);

Parameters

key

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

The resource identifier to use to locate the resource in the map.

Note  The resource identifier is treated as a URI fragment, subject to URI semantics. For example, lookup("Caption%20") is treated as lookup("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: NamedResource

The NamedResource associated with the specified key.

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

ResourceMap

 

 

Show:
© 2014 Microsoft