Expand Minimize
1 out of 4 rated this helpful - Rate this topic

System.Net Namespace

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 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.

  ClassDescription
Public classAuthenticationManagerManages the authentication modules called during the client authentication process.
Public classAuthorizationContains an authentication message for an Internet server.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCookieProvides a set of properties and methods that are used to manage cookies. This class cannot be inherited.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCookieCollectionProvides a collection container for instances of the Cookie class.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCookieContainerProvides a container for a collection of CookieCollection objects.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsCookieExceptionThe exception that is thrown when an error is made adding a Cookie to a CookieContainer.
Public classSupported in .NET for Windows Store appsCredentialCacheProvides storage for multiple credentials.
Public classDnsProvides simple domain name resolution functionality.
Public classDnsEndPointRepresents a network endpoint as a host name or a string representation of an IP address and a port number.
Public classDnsPermissionControls rights to access Domain Name System (DNS) servers on the network.
Public classDnsPermissionAttributeSpecifies permission to request information from Domain Name Servers.
Public classDownloadDataCompletedEventArgsProvides data for the DownloadDataCompleted event.
Public classDownloadProgressChangedEventArgsProvides data for the DownloadProgressChanged event of a WebClient.
Public classDownloadStringCompletedEventArgsProvides data for the DownloadStringCompleted event.
Public classEndPointIdentifies a network address. This is an abstract class.
Public classEndpointPermissionDefines an endpoint that is authorized by a SocketPermission instance.
Public classFileWebRequestProvides a file system implementation of the WebRequest class.
Public classFileWebResponseProvides a file system implementation of the WebResponse class.
Public classFtpWebRequestImplements a File Transfer Protocol (FTP) client.
Public classFtpWebResponseEncapsulates a File Transfer Protocol (FTP) server's response to a request.
Public classGlobalProxySelection Obsolete. Contains a global default proxy instance for all HTTP requests.
Public classHttpListenerProvides a simple, programmatically controlled HTTP protocol listener. This class cannot be inherited.
Public classHttpListenerBasicIdentityHolds the user name and password from a basic authentication request.
Public classHttpListenerContextProvides access to the request and response objects used by the HttpListener class. This class cannot be inherited.
Public classHttpListenerExceptionThe exception that is thrown when an error occurs processing an HTTP request.
Public classHttpListenerPrefixCollectionRepresents the collection used to store Uniform Resource Identifier (URI) prefixes for HttpListener objects.
Public classHttpListenerRequestDescribes an incoming HTTP request to an HttpListener object. This class cannot be inherited.
Public classHttpListenerResponseRepresents a response to a request being handled by an HttpListener object.
Public classHttpListenerTimeoutManagerThe timeout manager to use for an HttpListener object.
Public classHttpVersionDefines the HTTP version numbers that are supported by the HttpWebRequest and HttpWebResponse classes.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsHttpWebRequestProvides an HTTP-specific implementation of the WebRequest class.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsHttpWebResponseProvides an HTTP-specific implementation of the WebResponse class.
Public classIPAddressProvides an Internet Protocol (IP) address.
Public classIPEndPointRepresents a network endpoint as an IP address and a port number.
Public classIPEndPointCollectionRepresents a collection used to store network endpoints as IPEndPoint objects.
Public classIPHostEntryProvides a container class for Internet host address information.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsNetworkCredentialProvides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication.
Public classNetworkProgressChangedEventArgs Obsolete. Provides data for the network progress changed event.
Public classOpenReadCompletedEventArgsProvides data for the OpenReadCompleted event.
Public classOpenWriteCompletedEventArgsProvides data for the OpenWriteCompleted event.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsProtocolViolationExceptionThe exception that is thrown when an error is made while using a network protocol.
Public classServicePointProvides connection management for HTTP connections.
Public classServicePointManagerManages the collection of ServicePoint objects.
Public classSocketAddressStores serialized information from EndPoint derived classes.
Public classSocketPermissionControls rights to make or accept connections on a transport address.
Public classSocketPermissionAttributeSpecifies security actions to control Socket connections. This class cannot be inherited.
Public classSupported in .NET for Windows Store appsTransportContextThe TransportContext class provides additional context about the underlying transport layer.
Public classUiSynchronizationContext Obsolete. Provides the synchronization context for the managed UI used in synchronization models.
Public classUploadDataCompletedEventArgsProvides data for the UploadDataCompleted event.
Public classUploadFileCompletedEventArgsProvides data for the UploadFileCompleted event.
Public classUploadProgressChangedEventArgsProvides data for the UploadProgressChanged event of a WebClient.
Public classUploadStringCompletedEventArgsProvides data for the UploadStringCompleted event.
Public classUploadValuesCompletedEventArgsProvides data for the UploadValuesCompleted event.
Public classWebClientProvides common methods for sending data to and receiving data from a resource identified by a URI.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsWebExceptionThe exception that is thrown when an error occurs while accessing the network through a pluggable protocol.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsWebHeaderCollectionContains protocol headers associated with a request or response.
Public classWebPermissionControls rights to access HTTP Internet resources.
Public classWebPermissionAttributeSpecifies permission to access Internet resources. This class cannot be inherited.
Public classWebProxyContains HTTP proxy settings for the WebRequest class.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsWebRequestMakes a request to a Uniform Resource Identifier (URI). This is an abstract class.
Public classWebRequestMethodsContainer class for WebRequestMethods.Ftp, WebRequestMethods.File, and WebRequestMethods.Http classes. This class cannot be inherited
Public classWebRequestMethods.FileRepresents the types of file protocol methods that can be used with a FILE request. This class cannot be inherited.
Public classWebRequestMethods.FtpRepresents the types of FTP protocol methods that can be used with an FTP request. This class cannot be inherited.
Public classWebRequestMethods.HttpRepresents the types of HTTP protocol methods that can be used with an HTTP request.
Public classSupported by Portable Class LibrarySupported in .NET for Windows Store appsWebResponseProvides a response from a Uniform Resource Identifier (URI). This is an abstract class.
Public classSupported in .NET for Windows Store appsWebUtilityProvides methods for encoding and decoding URLs when processing Web requests.
Public classWriteStreamClosedEventArgsProvides data for the WriteStreamClosed event.
  InterfaceDescription
Public interfaceIAuthenticationModuleProvides the base authentication interface for Web client authentication modules.
Public interfaceICertificatePolicyValidates a server certificate.
Public interfaceICredentialPolicyDefines the credential policy to be used for resource requests that are made using WebRequest and its derived classes.
Public interfaceSupported by Portable Class LibrarySupported in .NET for Windows Store appsICredentialsProvides the base authentication interface for retrieving credentials for Web client authentication.
Public interfaceSupported in .NET for Windows Store appsICredentialsByHostProvides the interface for retrieving credentials for a host, port, and authentication type.
Public interfaceINetworkProgress Obsolete. Provides information on network progress in sending data over the network.
Public interfaceIUnsafeWebRequestCreate Obsolete. Creates an unsafe WebRequest to a Uniform Resource Identifier (URI).
Public interfaceSupported in .NET for Windows Store appsIWebProxyProvides the base interface for implementation of proxy access for the WebRequest class.
Public interfaceIWebProxyScriptInfrastructure. Provides the base interface to load and execute scripts for automatic proxy detection.
Public interfaceSupported by Portable Class LibrarySupported in .NET for Windows Store appsIWebRequestCreateProvides the base interface for creating WebRequest instances.
  DelegateDescription
Public delegateAuthenticationSchemeSelectorSelects the authentication scheme for an HttpListener instance.
Public delegateBindIPEndPointRepresents the method that specifies a local Internet Protocol address and port number for a ServicePoint.
Public delegateDownloadDataCompletedEventHandlerRepresents the method that will handle the DownloadDataCompleted event of a WebClient.
Public delegateDownloadProgressChangedEventHandlerRepresents the method that will handle the WebClient.DownloadProgressChanged event of a WebClient.
Public delegateDownloadStringCompletedEventHandlerRepresents the method that will handle the DownloadStringCompleted event of a WebClient.
Public delegateHttpContinueDelegateRepresents the method that notifies callers when a continue response is received by the client.
Public delegateHttpListener.ExtendedProtectionSelectorA delegate called to determine the ExtendedProtectionPolicy to use for each HttpListener request.
Public delegateOpenReadCompletedEventHandlerRepresents the method that will handle the OpenReadCompleted event of a WebClient.
Public delegateOpenWriteCompletedEventHandlerRepresents the method that will handle the OpenWriteCompleted event of a WebClient.
Public delegateUploadDataCompletedEventHandlerRepresents the method that will handle the UploadDataCompleted event of a WebClient.
Public delegateUploadFileCompletedEventHandlerRepresents the method that will handle the UploadFileCompleted event of a WebClient.
Public delegateUploadProgressChangedEventHandlerRepresents the method that will handle the UploadProgressChanged event of a WebClient.
Public delegateUploadStringCompletedEventHandlerRepresents the method that will handle the UploadStringCompleted event of a WebClient.
Public delegateUploadValuesCompletedEventHandlerRepresents the method that will handle the UploadValuesCompleted event of a WebClient.
Public delegateWriteStreamClosedEventHandlerRepresents the method that will handle the WriteStreamClosed event of a WebClient.
  EnumerationDescription
Public enumerationSupported in .NET for Windows Store appsAuthenticationSchemesSpecifies protocols for authentication.
Public enumerationSupported in .NET for Windows Store appsDecompressionMethodsRepresents the file compression and decompression encoding format to be used to compress the data received in response to an HttpWebRequest.
Public enumerationFtpStatusCodeSpecifies the status codes returned for a File Transfer Protocol (FTP) operation.
Public enumerationSupported by Portable Class LibrarySupported in .NET for Windows Store appsHttpRequestHeaderThe HTTP headers that may be specified in a client request.
Public enumerationHttpResponseHeaderThe HTTP headers that can be specified in a server response.
Public enumerationSupported by Portable Class LibrarySupported in .NET for Windows Store appsHttpStatusCodeContains the values of status codes defined for HTTP.
Public enumerationNetworkAccessSpecifies network access permissions.
Public enumerationSecurityProtocolTypeSpecifies the security protocols that are supported by the Schannel security package.
Public enumerationTransportTypeDefines transport types for the SocketPermission and Socket classes.
Public enumerationSupported by Portable Class LibrarySupported in .NET for Windows Store appsWebExceptionStatusDefines status codes for the WebException class.
Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.