Udostępnij za pośrednictwem


ResourceMap.Lookup(String) Method

Definition

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.

Implements

Applies to