## Socket::Bind method


Binds the socket with to the specified local endpoint.

```cpp
void System::Net::Sockets::Socket::Bind(System::SharedPtr<EndPoint> localEP)
```


| Parameter | Type | Description |
| --- | --- | --- |
| localEP | System::SharedPtr\<EndPoint\> | The local endpoint to which the socket is bound. |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [EndPoint](../../../system.net/endpoint/)
* Class [Socket](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.PDF for C++](../../../)
