ResourceMap.TryGetValue 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.
Overloads
| Name | Description |
|---|---|
| TryGetValue(String) | |
| TryGetValue(String, ResourceContext) |
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