信息
您所需的主题如下所示。但此主题未包含在此库中。

StreamSocketListener.BindServiceNameAsync | bindServiceNameAsync Methods

启动 StreamSocketListener 本地服务名的绑定操作。

重载列表

方法说明
BindServiceNameAsync(String) Starts a bind operation on a StreamSocketListener to a local service name.
BindServiceNameAsync(String, SocketProtectionLevel) Starts a bind operation on a StreamSocketListener to a local service name with a specified SocketProtectionLevel to set on any bound sockets.
BindServiceNameAsync(String, SocketProtectionLevel, NetworkAdapter) Starts a socket bind operation on a StreamSocketListener to a local service name on a specified network adapter with a specified SocketProtectionLevel to set on any bound sockets.

要求

最低支持客户端

Windows 8

最低支持服务器

Windows Server 2012

命名空间

Windows.Networking.Sockets
Windows::Networking::Sockets [C++]

元数据

Windows.winmd

另请参见

StreamSocketListener

 

 

显示: