ResourceManager.IsResourceReference(String) Method

Definition

Determines whether a supplied string matches the resource reference format (an ms-resource string URI identifier).

public:
 static bool IsResourceReference(Platform::String ^ resourceReference);
 static bool IsResourceReference(winrt::hstring const & resourceReference);
public static bool IsResourceReference(string resourceReference);
function isResourceReference(resourceReference)
Public Shared Function IsResourceReference (resourceReference As String) As Boolean

Parameters

resourceReference
String

The string you want to match.

Returns

Boolean

true if the string matches; otherwise, false.

Remarks

An example of matching an ms-resource string URI identifier format: isResourceReference('ms-resource:Hello') returns true, but isResourceReference('Hello') returns false.

Applies to