## JsonCollectionConverter::OnTryWrite method




```cpp
bool System::Text::Json::Serialization::JsonCollectionConverter<TCollection, TElement>::OnTryWrite(System::SharedPtr<Utf8JsonWriter> writer, TCollection value, System::SharedPtr<JsonSerializerOptions> options, WriteStack &state) override
```

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Utf8JsonWriter](../../../system.text.json/utf8jsonwriter/)
* Class [JsonSerializerOptions](../../../system.text.json/jsonserializeroptions/)
* Class [JsonCollectionConverter](../)
* Namespace [System::Text::Json::Serialization](../../)
* Library [Aspose.TeX for C++](../../../)
