DataPackagePropertySet.Lookup(String) 方法

定义

检索特定属性的值。

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

参数

key
String

Platform::String

winrt::hstring

键。

返回

Object

Platform::Object

IInspectable

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

实现

注解

使用 LookUp 方法,可以指定所需的属性的名称。 此名称可以是对象直接支持的属性,例如 title,也可以是源应用定义的自定义属性。

有关详细信息,请参阅 IMapView (String、Object)

适用于