This topic has not yet been rated - Rate this topic

System.Net Namespace

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

The System.Net namespace provides a simple programming interface for many of the protocols used on networks today. The WebRequest and 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 Metro style apps or desktop apps. When used in a Metro style 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 Metro style app for the system to allow network access by a Metro style app. For more information, see the Network Isolation for Metro Style Apps.

  Class Description
Public class AuthenticationManager Manages the authentication modules called during the client authentication process.
Public class Authorization Contains an authentication message for an Internet server.
Public class Cookie Provides a set of properties and methods that are used to manage cookies. This class cannot be inherited.
Public class CookieCollection Provides a collection container for instances of the Cookie class.
Public class CookieContainer Provides a container for a collection of CookieCollection objects.
Public class CookieException The exception that is thrown when an error is made adding a Cookie to a CookieContainer.
Public class CredentialCache Provides storage for multiple credentials.
Public class Dns Provides simple domain name resolution functionality.
Public class DnsEndPoint Represents a network endpoint as a host name or a string representation of an IP address and a port number.
Public class DnsPermission Controls rights to access Domain Name System (DNS) servers on the network.
Public class DnsPermissionAttribute Specifies permission to request information from Domain Name Servers.
Public class DownloadDataCompletedEventArgs Provides data for the DownloadDataCompleted event.
Public class DownloadProgressChangedEventArgs Provides data for the DownloadProgressChanged event of a WebClient.
Public class DownloadStringCompletedEventArgs Provides data for the DownloadStringCompleted event.
Public class EndPoint Identifies a network address. This is an abstract class.
Public class EndpointPermission Defines an endpoint that is authorized by a SocketPermission instance.
Public class FileWebRequest Provides a file system implementation of the WebRequest class.
Public class FileWebResponse Provides a file system implementation of the WebResponse class.
Public class FtpWebRequest Implements a File Transfer Protocol (FTP) client.
Public class FtpWebResponse Encapsulates a File Transfer Protocol (FTP) server's response to a request.
Public class GlobalProxySelection Obsolete. Contains a global default proxy instance for all HTTP requests.
Public class HttpListener Provides a simple, programmatically controlled HTTP protocol listener. This class cannot be inherited.
Public class HttpListenerBasicIdentity Holds the user name and password from a basic authentication request.
Public class HttpListenerContext Provides access to the request and response objects used by the HttpListener class. This class cannot be inherited.
Public class HttpListenerException The exception that is thrown when an error occurs processing an HTTP request.
Public class HttpListenerPrefixCollection Represents the collection used to store Uniform Resource Identifier (URI) prefixes for HttpListener objects.
Public class HttpListenerRequest Describes an incoming HTTP request to an HttpListener object. This class cannot be inherited.
Public class HttpListenerResponse Represents a response to a request being handled by an HttpListener object.
Public class HttpListenerTimeoutManager
Public class HttpVersion Defines the HTTP version numbers that are supported by the HttpWebRequest and HttpWebResponse classes.
Public class HttpWebRequest Provides an HTTP-specific implementation of the WebRequest class.
Public class HttpWebResponse Provides an HTTP-specific implementation of the WebResponse class.
Public class IPAddress Provides an Internet Protocol (IP) address.
Public class IPEndPoint Represents a network endpoint as an IP address and a port number.
Public class IPEndPointCollection Represents a collection used to store network endpoints as IPEndPoint objects.
Public class IPHostEntry Provides a container class for Internet host address information.
Public class NetworkCredential Provides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication.
Public class NetworkProgressChangedEventArgs Obsolete.
Public class OpenReadCompletedEventArgs Provides data for the OpenReadCompleted event.
Public class OpenWriteCompletedEventArgs Provides data for the OpenWriteCompleted event.
Public class ProtocolViolationException The exception that is thrown when an error is made while using a network protocol.
Public class ServicePoint Provides connection management for HTTP connections.
Public class ServicePointManager Manages the collection of ServicePoint objects.
Public class SocketAddress Stores serialized information from EndPoint derived classes.
Public class SocketPermission Controls rights to make or accept connections on a transport address.
Public class SocketPermissionAttribute Specifies security actions to control Socket connections. This class cannot be inherited.
Public class TransportContext The TransportContext class provides additional context about the underlying transport layer.
Public class UiSynchronizationContext Obsolete.
Public class UploadDataCompletedEventArgs Provides data for the UploadDataCompleted event.
Public class UploadFileCompletedEventArgs Provides data for the UploadFileCompleted event.
Public class UploadProgressChangedEventArgs Provides data for the UploadProgressChanged event of a WebClient.
Public class UploadStringCompletedEventArgs Provides data for the UploadStringCompleted event.
Public class UploadValuesCompletedEventArgs Provides data for the UploadValuesCompleted event.
Public class WebClient Provides common methods for sending data to and receiving data from a resource identified by a URI.
Public class WebException The exception that is thrown when an error occurs while accessing the network through a pluggable protocol.
Public class WebHeaderCollection Contains protocol headers associated with a request or response.
Public class WebPermission Controls rights to access HTTP Internet resources.
Public class WebPermissionAttribute Specifies permission to access Internet resources. This class cannot be inherited.
Public class WebProxy Contains HTTP proxy settings for the WebRequest class.
Public class WebRequest Makes a request to a Uniform Resource Identifier (URI). This is an abstract class.
Public class WebRequestMethods Container class for WebRequestMethods.Ftp, WebRequestMethods.File, and WebRequestMethods.Http classes. This class cannot be inherited
Public class WebRequestMethods.File Represents the types of file protocol methods that can be used with a FILE request. This class cannot be inherited.
Public class WebRequestMethods.Ftp Represents the types of FTP protocol methods that can be used with an FTP request. This class cannot be inherited.
Public class WebRequestMethods.Http Represents the types of HTTP protocol methods that can be used with an HTTP request.
Public class WebResponse Provides a response from a Uniform Resource Identifier (URI). This is an abstract class.
Public class WebUtility Provides methods for encoding and decoding URLs when processing Web requests.
Public class WriteStreamClosedEventArgs
  Interface Description
Public interface IAuthenticationModule Provides the base authentication interface for Web client authentication modules.
Public interface ICertificatePolicy Validates a server certificate.
Public interface ICredentialPolicy Defines the credential policy to be used for resource requests that are made using WebRequest and its derived classes.
Public interface ICredentials Provides the base authentication interface for retrieving credentials for Web client authentication.
Public interface ICredentialsByHost Provides the interface for retrieving credentials for a host, port, and authentication type.
Public interface INetworkProgress Obsolete.
Public interface IUnsafeWebRequestCreate Obsolete.
Public interface IWebProxy Provides the base interface for implementation of proxy access for the WebRequest class.
Public interface IWebProxyScript Infrastructure. Provides the base interface to load and execute scripts for automatic proxy detection.
Public interface IWebRequestCreate Provides the base interface for creating WebRequest instances.
  Delegate Description
Public delegate AuthenticationSchemeSelector Selects the authentication scheme for an HttpListener instance.
Public delegate BindIPEndPoint Represents the method that specifies a local Internet Protocol address and port number for a ServicePoint.
Public delegate DownloadDataCompletedEventHandler Represents the method that will handle the DownloadDataCompleted event of a WebClient.
Public delegate DownloadProgressChangedEventHandler Represents the method that will handle the WebClient.DownloadProgressChanged event of a WebClient.
Public delegate DownloadStringCompletedEventHandler Represents the method that will handle the DownloadStringCompleted event of a WebClient.
Public delegate HttpContinueDelegate Represents the method that notifies callers when a continue response is received by the client.
Public delegate HttpListener.ExtendedProtectionSelector A delegate called to determine the ExtendedProtectionPolicy to use for each HttpListener request.
Public delegate OpenReadCompletedEventHandler Represents the method that will handle the OpenReadCompleted event of a WebClient.
Public delegate OpenWriteCompletedEventHandler Represents the method that will handle the OpenWriteCompleted event of a WebClient.
Public delegate UploadDataCompletedEventHandler Represents the method that will handle the UploadDataCompleted event of a WebClient.
Public delegate UploadFileCompletedEventHandler Represents the method that will handle the UploadFileCompleted event of a WebClient.
Public delegate UploadProgressChangedEventHandler Represents the method that will handle the UploadProgressChanged event of a WebClient.
Public delegate UploadStringCompletedEventHandler Represents the method that will handle the UploadStringCompleted event of a WebClient.
Public delegate UploadValuesCompletedEventHandler Represents the method that will handle the UploadValuesCompleted event of a WebClient.
Public delegate WriteStreamClosedEventHandler
  Enumeration Description
Public enumeration AuthenticationSchemes Specifies protocols for authentication.
Public enumeration DecompressionMethods Represents the file compression and decompression encoding format to be used to compress the data received in response to an HttpWebRequest.
Public enumeration FtpStatusCode Specifies the status codes returned for a File Transfer Protocol (FTP) operation.
Public enumeration HttpRequestHeader The HTTP headers that may be specified in a client request.
Public enumeration HttpResponseHeader The HTTP headers that can be specified in a server response.
Public enumeration HttpStatusCode Contains the values of status codes defined for HTTP.
Public enumeration NetworkAccess Specifies network access permissions.
Public enumeration SecurityProtocolType Specifies the security protocols that are supported by the Schannel security package.
Public enumeration TransportType Defines transport types for the SocketPermission and Socket classes.
Public enumeration WebExceptionStatus Defines status codes for the WebException class.
Did you find this helpful?
(1500 characters remaining)