ResourceDictionary.Lookup(Object) 方法

定义

如果具有该键的条目存在,则返回所请求键中的值。

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

参数

key
Object

Platform::Object

IInspectable

请求的密钥。

返回

Object

Platform::Object

IInspectable

如果存在具有指定键的项,则为 值。 使用 HasKey 方法确定密钥是否存在。

实现

注解

注意

等效的 Microsoft .NET API 是 索引器。

适用于