Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.47 KB

resourceloader_resourceloader_1221375020.md

File metadata and controls

31 lines (19 loc) · 1.47 KB
-api-id -api-type
M:Windows.ApplicationModel.Resources.ResourceLoader.#ctor
winrt method

Windows.ApplicationModel.Resources.ResourceLoader.ResourceLoader

-description

Note

ResourceLoader() may be altered or unavailable for releases after Windows 8.1. Instead, use GetForCurrentView().

Constructs a new ResourceLoader object for the "Resources" subtree of the currently running app's main ResourceMap.

Equivalent WinUI 2 API for UWP: ResourceLoader() (for WinUI in the Windows App SDK, see the Windows App SDK namespaces).

-remarks

The empty constructor typically allows access relative to a resource file's named resources (resources.resjson or resources.resw).

This constructor fails with an exception if the main ResourceMap does not have a "Resources" subtree.

-examples

-see-also

ResourceLoader class, ResourceLoader(String), ResourceMap