ResourceLoader.GetStringForReference | getStringForReference method

Applies to Windows and Windows Phone

[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.

Syntax


public:
static String^ GetStringForReference(
  Uri^ uri
)

Parameters

uri

Type: Windows.Foundation.Uri [JavaScript] | System.Uri [.NET] | Windows::Foundation::Uri [C++]

A Uri that represents the resource to be retrieved.

Return value

Type: String [JavaScript] | System.String [.NET] | Platform::String [C++]

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.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

End of client support

Windows 8.1

End of server support

Windows Server 2012 R2

Namespace

Windows.ApplicationModel.Resources
Windows::ApplicationModel::Resources [C++]

Metadata

Windows.winmd

See also

ResourceLoader
ResourceContext
How to load string resources

 

 

Show:
© 2014 Microsoft