ResourceContext.GetForUIContext(UIContext) ResourceContext.GetForUIContext(UIContext) ResourceContext.GetForUIContext(UIContext) ResourceContext.GetForUIContext(UIContext) ResourceContext.GetForUIContext(UIContext) Method

Definition

Gets a default ResourceContext associated with the specified UIContext for the currently running application.

public : static ResourceContext GetForUIContext(UIContext context)
static ResourceContext GetForUIContext(UIContext context) const;
public static ResourceContext GetForUIContext(UIContext context)
Public Shared Function GetForUIContext(context As UIContext) As ResourceContext
var resourceContext = Windows.ApplicationModel.Resources.Core.ResourceContext.getForUIContext(context);

Parameters

context
UIContext UIContext UIContext

The UI context for which to get the ResourceContext.

Returns

The default ResourceContext associated with the specified UI context.

Additional features and requirements

Device family
Windows 10, version 1903 (introduced v10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v8)

Remarks

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