---
title: "System::Text::Json::Nodes::JsonObject::ContainsKey method"
url: "https://reference.aspose.com/pdf/cpp/system.text.json.nodes/jsonobject/containskey/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Text::Json::Nodes::JsonObject::ContainsKey method. Checks if container contains key in C++."
---

## JsonObject::ContainsKey method


Checks if container contains key.

```cpp
bool System::Text::Json::Nodes::JsonObject::ContainsKey(const String &propertyName) const override
```


| Parameter | Type | Description |
| --- | --- | --- |
| key | const String\& | Key to look for. |

### ReturnValue

True if key is present, false otherwise.

## See Also

* Class [String](../../../system/string/)
* Class [JsonObject](../)
* Namespace [System::Text::Json::Nodes](../../)
* Library [Aspose.PDF for C++](../../../)
