ResourceLoader.GetStringForReference(Uri) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
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.