ResourceLoader.GetStringForReference(Uri) ResourceLoader.GetStringForReference(Uri) ResourceLoader.GetStringForReference(Uri) ResourceLoader.GetStringForReference(Uri) ResourceLoader.GetStringForReference(Uri) Method

Definition

Note

GetStringForReference may be altered or unavailable for releases after Windows 8.1. Instead, use GetStringForUri.

Returns the most appropriate string value of a resource, specified as a Uri for a resource identifier, for the default ResourceContext of the currently running app.

public : static Platform::String GetStringForReference(Uri uri)
static winrt::hstring GetStringForReference(Uri uri) const;
public static string GetStringForReference(Uri uri)
Public Shared Function GetStringForReference(uri As Uri) As string
var string = Windows.ApplicationModel.Resources.ResourceLoader.getStringForReference(uri);

Parameters

uri
Uri Uri Uri

A Uri that represents the resource to be retrieved.

Returns

string string string

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

Remarks

Uri objects require a scheme to be identified. In this context, the ms-resource scheme must be specified in the Uri passed to the method. See How to load string resources.

See also