Delen via


DataPackagePropertySetView.HasKey(String) Method

Definition

Indicates whether the DataPackagePropertySetView object contains a specific property.

public:
 virtual bool HasKey(Platform::String ^ key) = IMapView<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 DataPackagePropertySetView 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 DataPackagePropertySetView object doesn't directly support. For more info, see IMapView(String, Object).

Applies to