Share via


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);
/// [Windows.Foundation.Metadata.Deprecated("GetStringForReference may be altered or unavailable for releases after Windows Phone 'OSVersion' (TBD). Instead, use GetStringForUri.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, Windows.Foundation.UniversalApiContract)]
 static winrt::hstring GetStringForReference(Uri const& uri);
/// [Windows.Foundation.Metadata.Deprecated("GetStringForReference may be altered or unavailable for releases after Windows Phone 'OSVersion' (TBD). Instead, use GetStringForUri.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
 static winrt::hstring GetStringForReference(Uri const& uri);
 static winrt::hstring GetStringForReference(Uri const& uri);
[Windows.Foundation.Metadata.Deprecated("GetStringForReference may be altered or unavailable for releases after Windows Phone 'OSVersion' (TBD). Instead, use GetStringForUri.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, typeof(Windows.Foundation.UniversalApiContract))]
public static string GetStringForReference(System.Uri uri);
[Windows.Foundation.Metadata.Deprecated("GetStringForReference may be altered or unavailable for releases after Windows Phone 'OSVersion' (TBD). Instead, use GetStringForUri.", Windows.Foundation.Metadata.DeprecationType.Deprecate, 65536, "Windows.Foundation.UniversalApiContract")]
public static string GetStringForReference(System.Uri uri);
public static string GetStringForReference(System.Uri uri);
function getStringForReference(uri)
Public Shared Function GetStringForReference (uri As Uri) As String

Parameters

uri
Uri Uri

A Uri that represents the resource to be retrieved.

Returns

String

Platform::String

winrt::hstring

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

Attributes

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.

Applies to

See also