---
title: "System::Buffers::ReadOnlySequenceSegment::set_Next method"
url: "https://reference.aspose.com/pdf/cpp/system.buffers/readonlysequencesegment/set_next/"
product: "Aspose.PDF for C++ API Reference"
description: "System::Buffers::ReadOnlySequenceSegment::set_Next method. Sets the next segment in the sequence in C++."
---

## ReadOnlySequenceSegment::set_Next method


Sets the next segment in the sequence.

```cpp
void System::Buffers::ReadOnlySequenceSegment<T>::set_Next(const SharedPtr<ReadOnlySequenceSegment<T>> &value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | const SharedPtr\<ReadOnlySequenceSegment\<T\>\>\& | The next segment to link. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [ReadOnlySequenceSegment](../)
* Namespace [System::Buffers](../../)
* Library [Aspose.PDF for C++](../../../)
