Share via


ResourceDictionary.Lookup(Object) Method

Definition

Returns the value from the requested key, if an entry with that key exists.

public:
 virtual Platform::Object ^ Lookup(Platform::Object ^ key) = IMap<Platform::Object ^, Platform::Object ^>::Lookup;
IInspectable Lookup(IInspectable const& key);
public object Lookup(object key);
function lookup(key)
Public Function Lookup (key As Object) As Object

Parameters

key
Object

Platform::Object

IInspectable

The requested key.

Returns

Object

Platform::Object

IInspectable

The value, if an item with the specified key exists. Use the HasKey method to determine whether the key exists.

Implements

Remarks

Note

The equivalent Microsoft .NET API is the Item indexer.

Applies to