Delen via


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

Platform::String

winrt::hstring

The string you want to match.

Returns

Boolean

bool

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