ResourceDictionary.Lookup(Object) Method

Definition

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

Equivalent WinUI method: Microsoft.UI.Xaml.ResourceDictionary.Lookup.

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

The requested key.

Returns

Object

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