---
title: "System::Text::Json::JsonDocumentOptions::set_CommentHandling method"
url: "https://reference.aspose.com/pdf/cpp/system.text.json/jsondocumentoptions/set_commenthandling/"
product: "Aspose.PDF for C++ API Reference"
description: "How to use set_CommentHandling method of System::Text::Json::JsonDocumentOptions class in C++."
---

## JsonDocumentOptions::set_CommentHandling method




```cpp
void System::Text::Json::JsonDocumentOptions::set_CommentHandling(JsonCommentHandling value)
```

## See Also

* Enum [JsonCommentHandling](../../jsoncommenthandling/)
* Class [JsonDocumentOptions](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
