## Socket::Bind method


将套接字绑定到指定的本地端点。

```cpp
void System::Net::Sockets::Socket::Bind(System::SharedPtr<EndPoint> localEP)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| localEP | System::SharedPtr\<EndPoint\> | 套接字绑定的本地端点。 |

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [EndPoint](../../../system.net/endpoint/)
* Class [Socket](../)
* Namespace [System::Net::Sockets](../../)
* Library [Aspose.Font for C++](../../../)
