ResourceDictionary.Lookup(Object) 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 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
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
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla