Share via


DataPackagePropertySet.HasKey(String) Method

Definition

Indicates whether the DataPackagePropertySet object contains a specific property.

public:
 virtual bool HasKey(Platform::String ^ key) = IMap<Platform::String ^, Platform::Object ^>::HasKey;
bool HasKey(winrt::hstring const& key);
public bool HasKey(string key);
function hasKey(key)
Public Function HasKey (key As String) As Boolean

Parameters

key
String

Platform::String

winrt::hstring

The key.

Returns

Boolean

bool

True if the property set has an item with the specified key; otherwise false.

Implements

Remarks

With the DataPackagePropertySet class, use HasKey as a way to see whether the object contains a specific property. This is useful in situations where your app requires a custom property that the DataPackagePropertySet object doesn't directly support. For more info, see IMapView(String, Object).

Applies to