-api-id | -api-type |
---|---|
M:Windows.ApplicationModel.Resources.ResourceLoader.#ctor |
winrt method |
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).
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.