ResourceLoader ResourceLoader ResourceLoader ResourceLoader ResourceLoader Constructors

Definition

Overloads

ResourceLoader() ResourceLoader() ResourceLoader() ResourceLoader() ResourceLoader()

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.

ResourceLoader(String) ResourceLoader(String) ResourceLoader(String) ResourceLoader(String) ResourceLoader(String)

Note

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

Constructs a new ResourceLoader object for the specified ResourceMap.

ResourceLoader() ResourceLoader() ResourceLoader() ResourceLoader() ResourceLoader()

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.

public : ResourceLoader()
ResourceLoader() const;
public ResourceLoader()
Public Sub New()
var resourceLoader = new resourceLoader();

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.

See also

ResourceLoader(String) ResourceLoader(String) ResourceLoader(String) ResourceLoader(String) ResourceLoader(String)

Note

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

Constructs a new ResourceLoader object for the specified ResourceMap.

public : ResourceLoader(Platform::String name)
ResourceLoader(winrt::hstring name) const;
public ResourceLoader(String name)
Public Sub New(name As String)
var resourceLoader = new resourceLoader(name);

Parameters

name
String String String

The resource identifier of the ResourceMap that the new resource loader uses for unqualified resource references. It can then retrieve resources relative to those references.

Note

The resource identifier is treated as a Uniform Resource Identifier (URI) fragment, subject to Uniform Resource Identifier (URI) semantics. For example, "Caption%20" is treated as "Caption ". Do not use "?" or "#" in resource identifiers, as they terminate the named resource path. For example, "Foo?3" is treated as "Foo".

Remarks

This constructor is typically used to access resources relative to a resource file with the specified resource identifier. For example, new ResourceLoader('Errors'); is relative to errors.resjson or errors.resw.

See also