ResourceLoader.GetForUIContext(UIContext) ResourceLoader.GetForUIContext(UIContext) ResourceLoader.GetForUIContext(UIContext) ResourceLoader.GetForUIContext(UIContext) ResourceLoader.GetForUIContext(UIContext) Method

Definition

Gets a ResourceLoader object for the specified UIContext.

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

Parameters

context
UIContext UIContext UIContext

The UI context for which to get the ResourceLoader.

Returns

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.