MSDN Documentation

Discover the .NET Framework APIs

System.Net Namespace

Provides classes that allow you to send or receive data from Internet resources.

Key Classes and Interfaces

HttpClient

The HttpClient class provides a base class for sending HTTP requests. It is recommended for most client-side scenarios, offering better performance and resource management than older classes like WebClient.

Common Methods:

See full documentation for HttpClient...

HttpListener

Use the HttpListener class to create a listener that listens for incoming HTTP requests. This is useful for building simple web servers or APIs.

Common Methods:

See full documentation for HttpListener...

WebClient

WebClient provides a simple way to download or upload data. It's often used for basic file transfers or fetching simple web content.

Common Methods:

See full documentation for WebClient...

IPAddress

The IPAddress class represents an Internet Protocol (IP) address and is fundamental for network communication.

Common Properties:

Common Methods:

See full documentation for IPAddress...

Dns

The Dns class provides methods for resolving domain names to IP addresses and vice versa.

Common Methods:

See full documentation for Dns...

Socket

The Socket class provides the Windows Sockets API for network communication. It offers low-level control over network operations.

Common Properties:

Common Methods:

See full documentation for Socket...