DataPackagePropertySet.HasKey(String) 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.
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
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).