ResourceLoader.GetForViewIndependentUse Method

Definition

Overloads

GetForViewIndependentUse()

Gets a ResourceLoader object for the Resources subtree of the currently running app's main ResourceMap. This ResourceLoader uses a default context that's not associated with any view.

GetForViewIndependentUse(String)

Gets a ResourceLoader object for the specified ResourceMap. This ResourceLoader uses a default context that's not associated with any view.

GetForViewIndependentUse()

Gets a ResourceLoader object for the Resources subtree of the currently running app's main ResourceMap. This ResourceLoader uses a default context that's not associated with any view.

public:
 static ResourceLoader ^ GetForViewIndependentUse();
/// [Windows.Foundation.Metadata.Overload("GetForViewIndependentUse")]
 static ResourceLoader GetForViewIndependentUse();
[Windows.Foundation.Metadata.Overload("GetForViewIndependentUse")]
public static ResourceLoader GetForViewIndependentUse();
function getForViewIndependentUse()
Public Shared Function GetForViewIndependentUse () As ResourceLoader

Returns

A resource loader for the Resources subtree of the currently running app's main ResourceMap. This ResourceLoader uses a default context that's not associated with any view. You can't use this ResourceLoader to retrieve any resource that has resource candidates qualified for scale.

Attributes

See also

Applies to

GetForViewIndependentUse(String)

Gets a ResourceLoader object for the specified ResourceMap. This ResourceLoader uses a default context that's not associated with any view.

public:
 static ResourceLoader ^ GetForViewIndependentUse(Platform::String ^ name);
/// [Windows.Foundation.Metadata.Overload("GetForViewIndependentUseWithName")]
 static ResourceLoader GetForViewIndependentUse(winrt::hstring const& name);
[Windows.Foundation.Metadata.Overload("GetForViewIndependentUseWithName")]
public static ResourceLoader GetForViewIndependentUse(string name);
function getForViewIndependentUse(name)
Public Shared Function GetForViewIndependentUse (name As String) As ResourceLoader

Parameters

name
String

Platform::String

winrt::hstring

The resource identifier of the ResourceMap that the new resource loader uses for unqualified resource references. The loader 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".

Returns

A resource loader for the Resources subtree of the currently running app's main ResourceMap. This ResourceLoader uses a default context that's not associated with any view. You can't use this ResourceLoader to retrieve any resource that has resource candidates qualified for scale.

Attributes

See also

Applies to