System.Net Namespace

The System.Net namespace provides a simple programming interface for many of the protocols used on networks today. The System.Net.WebRequest and System.Net.WebResponse classes form the basis of what are called pluggable protocols, an implementation of network services that enables you to develop applications that use Internet resources without worrying about the specific details of the individual protocols.

Classes in the System.Net namespace can be used to develop Windows Store apps or desktop apps. When used in a Windows Store app, classes in the System.Net namespace are affected by network isolation feature, part of the application security model used by the Windows Developer Preview. The appropriate network capabilities must be enabled in the app manifest for a Windows Store app for the system to allow network access by a Windows Store app. For more information, see the Network Isolation for Windows Store Apps.

Remarks

To be added.

Classes

TypeReason
AuthenticationManager

Manages the authentication modules called during the client authentication process.

AuthenticationSchemes

Specifies protocols for authentication.

AuthenticationSchemeSelector

Selects the authentication scheme for an System.Net.HttpListener instance.

Authorization

Contains an authentication message for an Internet server.

BindIPEndPoint

Represents the method that specifies a local Internet Protocol address and port number for a System.Net.ServicePoint.

CipherSuitesCallbackYou can provide your own code to filter/re-order the cipher suites to be used for client and/or server side SSL/TLS support.
Cookie

Provides a set of properties and methods that are used to manage cookies. This class cannot be inherited.

CookieCollection

Provides a collection container for instances of the System.Net.Cookie class.

CookieContainer

Provides a container for a collection of System.Net.CookieCollection objects.

CookieException

The exception that is thrown when an error is made adding a System.Net.Cookie to a System.Net.CookieContainer.

CredentialCache

Provides storage for multiple credentials.

DecompressionMethods

Represents the file compression and decompression encoding format to be used to compress the data received in response to an System.Net.HttpWebRequest.

Dns

Provides simple domain name resolution functionality.

DnsEndPoint

Represents a network endpoint as a host name or a string representation of an IP address and a port number.

DnsPermission

Controls rights to access Domain Name System (DNS) servers on the network.

DnsPermissionAttribute

Specifies permission to request information from Domain Name Servers.

DownloadDataCompletedEventArgs

Provides data for the System.Net.WebClient.DownloadDataCompleted event.

DownloadDataCompletedEventHandler

Represents the method that will handle the System.Net.WebClient.DownloadDataCompleted event of a System.Net.WebClient.

DownloadProgressChangedEventArgs

Provides data for the System.Net.WebClient.DownloadProgressChanged event of a System.Net.WebClient.

DownloadProgressChangedEventHandler

Represents the method that will handle the System.Net.WebClient.DownloadProgressChanged event of a System.Net.WebClient.

DownloadStringCompletedEventArgs

Provides data for the System.Net.WebClient.DownloadStringCompleted event.

DownloadStringCompletedEventHandler

Represents the method that will handle the System.Net.WebClient.DownloadStringCompleted event of a System.Net.WebClient.

EndPoint

Identifies a network address. This is an abstract class.

EndpointPermission

Defines an endpoint that is authorized by a System.Net.SocketPermission instance.

FileWebRequest

Provides a file system implementation of the System.Net.WebRequest class.

FileWebResponse

Provides a file system implementation of the System.Net.WebResponse class.

FtpStatusCode

Specifies the status codes returned for a File Transfer Protocol (FTP) operation.

FtpWebRequest

Implements a File Transfer Protocol (FTP) client.

FtpWebResponse

Encapsulates a File Transfer Protocol (FTP) server's response to a request.

GlobalProxySelection

Contains a global default proxy instance for all HTTP requests.

HttpContinueDelegate

Represents the method that notifies callers when a continue response is received by the client.

HttpListener

Provides a simple, programmatically controlled HTTP protocol listener. This class cannot be inherited.

HttpListenerBasicIdentity

Holds the user name and password from a basic authentication request.

HttpListenerContext

Provides access to the request and response objects used by the System.Net.HttpListener class. This class cannot be inherited.

HttpListenerException

The exception that is thrown when an error occurs processing an HTTP request.

HttpListenerPrefixCollection

Represents the collection used to store Uniform Resource Identifier (URI) prefixes for System.Net.HttpListener objects.

HttpListenerRequest

Describes an incoming HTTP request to an System.Net.HttpListener object. This class cannot be inherited.

HttpListenerResponse

Represents a response to a request being handled by an System.Net.HttpListener object.

HttpRequestHeader

The HTTP headers that may be specified in a client request.

HttpResponseHeader

The HTTP headers that can be specified in a server response.

HttpStatusCode

Contains the values of status codes defined for HTTP.

HttpVersion

Defines the HTTP version numbers that are supported by the System.Net.HttpWebRequest and System.Net.HttpWebResponse classes.

HttpWebRequest

Provides an HTTP-specific implementation of the System.Net.WebRequest class.

HttpWebResponse

Provides an HTTP-specific implementation of the System.Net.WebResponse class.

IAuthenticationModule

Provides the base authentication interface for Web client authentication modules.

ICertificatePolicy

Validates a server certificate.

ICredentialPolicy

Defines the credential policy to be used for resource requests that are made using System.Net.WebRequest and its derived classes.

ICredentials

Provides the base authentication interface for retrieving credentials for Web client authentication.

ICredentialsByHost

Provides the interface for retrieving credentials for a host, port, and authentication type.

IPAddress

Provides an Internet Protocol (IP) address.

IPEndPoint

Represents a network endpoint as an IP address and a port number.

IPHostEntry

Provides a container class for Internet host address information.

IWebProxy

Provides the base interface for implementation of proxy access for the System.Net.WebRequest class.

IWebProxyScript

Provides the base interface to load and execute scripts for automatic proxy detection.

IWebRequestCreate

Provides the base interface for creating System.Net.WebRequest instances.

NetworkAccess

Specifies network access permissions.

NetworkCredential

Provides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication.

OpenReadCompletedEventArgs

Provides data for the System.Net.WebClient.OpenReadCompleted event.

OpenReadCompletedEventHandler

Represents the method that will handle the System.Net.WebClient.OpenReadCompleted event of a System.Net.WebClient.

OpenWriteCompletedEventArgs

Provides data for the System.Net.WebClient.OpenWriteCompleted event.

OpenWriteCompletedEventHandler

Represents the method that will handle the System.Net.WebClient.OpenWriteCompleted event of a System.Net.WebClient.

ProtocolViolationException

The exception that is thrown when an error is made while using a network protocol.

SecurityProtocolType

Specifies the security protocols that are supported by the Schannel security package.

ServicePoint

Provides connection management for HTTP connections.

ServicePointManager

Manages the collection of System.Net.ServicePoint objects.

SocketAddress

Stores serialized information from System.Net.EndPoint derived classes.

SocketPermission

Controls rights to make or accept connections on a transport address.

SocketPermissionAttribute

Specifies security actions to control System.Net.Sockets.Socket connections. This class cannot be inherited.

TransportContext

The System.Net.TransportContext class provides additional context about the underlying transport layer.

TransportType

Defines transport types for the System.Net.SocketPermission and System.Net.Sockets.Socket classes.

UploadDataCompletedEventArgs

Provides data for the System.Net.WebClient.UploadDataCompleted event.

UploadDataCompletedEventHandler

Represents the method that will handle the System.Net.WebClient.UploadDataCompleted event of a System.Net.WebClient.

UploadFileCompletedEventArgs

Provides data for the System.Net.WebClient.UploadFileCompleted event.

UploadFileCompletedEventHandler

Represents the method that will handle the System.Net.WebClient.UploadFileCompleted event of a System.Net.WebClient.

UploadProgressChangedEventArgs

Provides data for the System.Net.WebClient.UploadProgressChanged event of a System.Net.WebClient.

UploadProgressChangedEventHandler

Represents the method that will handle the System.Net.WebClient.UploadProgressChanged event of a System.Net.WebClient.

UploadStringCompletedEventArgs

Provides data for the System.Net.WebClient.UploadStringCompleted event.

UploadStringCompletedEventHandler

Represents the method that will handle the System.Net.WebClient.UploadStringCompleted event of a System.Net.WebClient.

UploadValuesCompletedEventArgs

Provides data for the System.Net.WebClient.UploadValuesCompleted event.

UploadValuesCompletedEventHandler

Represents the method that will handle the System.Net.WebClient.UploadValuesCompleted event of a System.Net.WebClient.

WebClient

Provides common methods for sending data to and receiving data from a resource identified by a URI.

WebException

The exception that is thrown when an error occurs while accessing the network through a pluggable protocol.

WebExceptionStatus

Defines status codes for the System.Net.WebException class.

WebHeaderCollection

Contains protocol headers associated with a request or response.

WebPermission

Controls rights to access HTTP Internet resources.

WebPermissionAttribute

Specifies permission to access Internet resources. This class cannot be inherited.

WebProxy

Contains HTTP proxy settings for the System.Net.WebRequest class.

WebRequest

Makes a request to a Uniform Resource Identifier (URI). This is an abstract class.

WebRequestMethods

Container class for System.Net.WebRequestMethods.Ftp, System.Net.WebRequestMethods.File, and System.Net.WebRequestMethods.Http classes. This class cannot be inherited

WebRequestMethods+FileDocumentation for this section has not yet been entered.
WebRequestMethods+FtpDocumentation for this section has not yet been entered.
WebRequestMethods+HttpDocumentation for this section has not yet been entered.
WebResponse

Provides a response from a Uniform Resource Identifier (URI). This is an abstract class.

WebUtility

Provides methods for encoding and decoding URLs when processing Web requests.