Export (0) Print
Expand All
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ResourceContext.GetForViewIndependentUse | getForViewIndependentUse method

Applies to Windows and Windows Phone

Gets a default ResourceContext not associated with any view.

Syntax


var resourceContext = Windows.ApplicationModel.Resources.Core.ResourceContext.getForViewIndependentUse();

Parameters

This method has no parameters.

Return value

Type: ResourceContext

A default ResourceContext not associated with any view.

Remarks

By default, no scale qualifier value is set in the ResourceContext returned by this method. Unless and until a scale qualifier value is set programmatically, the returned ResourceContext does not support any operations that involve the scale qualifier, including reading the scale qualifier value or resolving resource candidates that are qualified for scale.

Errors

This method fails if it is called in a windowless thread.

Requirements

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

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

ResourceContext

 

 

Show:
© 2014 Microsoft