Aracılığıyla paylaş


ResourceContext.GetForViewIndependentUse Method

Definition

Gets a default ResourceContext not associated with any view.

public:
 static ResourceContext ^ GetForViewIndependentUse();
 static ResourceContext GetForViewIndependentUse();
public static ResourceContext GetForViewIndependentUse();
function getForViewIndependentUse()
Public Shared Function GetForViewIndependentUse () As ResourceContext

Returns

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.

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

Applies to