Share via


ResourceLoader.GetForUIContext(UIContext) Method

Definition

Gets a ResourceLoader object for the specified UIContext.

public:
 static ResourceLoader ^ GetForUIContext(UIContext ^ context);
 static ResourceLoader GetForUIContext(UIContext const& context);
public static ResourceLoader GetForUIContext(UIContext context);
function getForUIContext(context)
Public Shared Function GetForUIContext (context As UIContext) As ResourceLoader

Parameters

context
UIContext

The UI context for which to get the ResourceLoader.

Returns

A resource loader for the specified UIContext.

Windows requirements

Device family
Windows 10, version 1903 (introduced in 10.0.18362.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v8.0)

Remarks

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

Applies to

See also