ResourceLoader.GetString(String) ResourceLoader.GetString(String) ResourceLoader.GetString(String) ResourceLoader.GetString(String) ResourceLoader.GetString(String) Method

Definition

Returns the most appropriate string value of a resource, specified by resource identifier, for the default ResourceContext of the view in which the ResourceLoader was obtained using ResourceLoader.GetForCurrentView.

public : Platform::String GetString(Platform::String resource)
winrt::hstring GetString(winrt::hstring resource) const;
public string GetString(String resource)
Public Function GetString(resource As String) As string
var string = resourceLoader.getString(resource);

Parameters

resource
String String String

The resource identifier of the resource to be resolved.

Note

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

Returns

string string string

The most appropriate string value of the specified resource for the default ResourceContext.

Examples

See the example in ResourceLoader.

Remarks

See also