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 |
|
|
Metadata |
|
See also
Build date: 12/4/2012
