Training
Learning path
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.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The System.Net.Sockets namespace contains a managed, cross-platform socket networking implementation. All other network-access classes in the System.Net namespace are built on top of this implementation of sockets.
The Socket class is a managed-code version of the socket services provided relying on native interoperability with Linux, macOS, or Windows. In most cases, the Socket
class methods simply marshal data into their native counterparts and handle any necessary security checks.
The Socket
class supports two basic modes, synchronous and asynchronous. In synchronous mode, calls to functions that perform network operations (such as SendAsync and ReceiveAsync) wait until the operation completes before returning control to the calling program. In asynchronous mode, these calls return immediately.
.NET feedback
.NET is an open source project. Select a link to provide feedback:
Training
Learning path
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.
Please sign in to use this experience.
Sign in