ResourceMap.TryGetValue Method

Definition

Overloads

TryGetValue(String)

public:
 virtual ResourceCandidate ^ TryGetValue(Platform::String ^ resource) = TryGetValue;
/// [Windows.Foundation.Metadata.Overload("TryGetValue")]
ResourceCandidate TryGetValue(winrt::hstring const& resource);
[Windows.Foundation.Metadata.Overload("TryGetValue")]
public ResourceCandidate TryGetValue(string resource);
function tryGetValue(resource)
Public Function TryGetValue (resource As String) As ResourceCandidate

Parameters

resource
String

Platform::String

winrt::hstring

Returns

Attributes

Applies to

TryGetValue(String, ResourceContext)

public:
 virtual ResourceCandidate ^ TryGetValue(Platform::String ^ resource, ResourceContext ^ context) = TryGetValue;
/// [Windows.Foundation.Metadata.Overload("TryGetValueWithContext")]
ResourceCandidate TryGetValue(winrt::hstring const& resource, ResourceContext const& context);
[Windows.Foundation.Metadata.Overload("TryGetValueWithContext")]
public ResourceCandidate TryGetValue(string resource, ResourceContext context);
function tryGetValue(resource, context)
Public Function TryGetValue (resource As String, context As ResourceContext) As ResourceCandidate

Parameters

resource
String

Platform::String

winrt::hstring

context
ResourceContext

Returns

Attributes

Applies to