## TcpClient::set_LingerState method


Sets a value that indicates if the socket will delay closing in an attempt to send all pending data.

```cpp
void System::Net::Sockets::TcpClient::set_LingerState(System::SharedPtr<LingerOption> value)
```


| Parameter | Type | Description |
| --- | --- | --- |
| value | System::SharedPtr\<LingerOption\> | The value that must be set. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [LingerOption](../../lingeroption/)
* Class [TcpClient](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.PDF for C++](../../../)
