## NetworkStream::get_Socket method


Gets the underlying [Socket](../../socket/).

```cpp
System::SharedPtr<System::Net::Sockets::Socket> System::Net::Sockets::NetworkStream::get_Socket()
```


### ReturnValue

A [Socket](../../socket/) object that represents the underlying network connection.

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Socket](../../socket/)
* Class [NetworkStream](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.PDF for C++](../../../)
