ResourceMap.Lookup(String) 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.
Returns the NamedResource at the specified resource identifier in the map.
public:
virtual NamedResource ^ Lookup(Platform::String ^ key) = IMapView<Platform::String ^, NamedResource ^>::Lookup;
NamedResource Lookup(winrt::hstring const& key);
public NamedResource Lookup(string key);
function lookup(key)
Public Function Lookup (key As String) As NamedResource
Parameters
- key
-
String
Platform::String
winrt::hstring
The resource identifier to use to locate the resource in the map. For syntax details, see the remarks for ResourceMap class.
Returns
The value, if an item with the specified key exists. Use the HasKey method to determine whether the key exists.