培训
学习路径
Access local files asynchronously - Training
Learn how to manage local files using the System.IO namespace and how to asynchronously back up and restore application data using the System.Text.Json namespace.
命名空间 System.Net.Sockets 包含托管的跨平台套接字网络实现。 命名空间中的所有 System.Net 其他网络访问类都是基于此套接字实现构建的。
Socket 类是套接字服务的托管代码实现,依赖于与 Linux、macOS 或 Windows 的本地互操作性。 大多数情况下,Socket
类方法只是将数据封送到其本机对等体中,并负责任何必要的安全检查。
该 Socket
类支持两种基本模式,即同步模式和异步模式。 在同步模式下,对执行网络操作(如 SendAsync 和 ReceiveAsync)的函数的调用会等待操作执行完成,才将控制权返回给调用程序。 在异步模式下,这些调用会立即返回。
培训
学习路径
Access local files asynchronously - Training
Learn how to manage local files using the System.IO namespace and how to asynchronously back up and restore application data using the System.Text.Json namespace.