This topic has not yet been rated - Rate this topic

System.Net Namespace

April 12, 2014

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.

Capabilities

If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_NETWORKING

Windows Phone 8, Windows Phone OS 7.1

For more info, see App capabilities and hardware requirements for Windows Phone 8.

  ClassDescription
Public classCookieProvides an object for use with HTTP requests to persist state information for a Windows Phone-based application.
Public classCookieCollectionRepresents a collection of Cookie objects.
Public classCookieContainerProvides a container for a collection of CookieCollection objects.
Public classCookieExceptionThe exception that is thrown when adding a Cookie to a CookieCollection.
Public classCredentialCacheProvides storage for multiple credentials.
Public classDnsEndPointRepresents a network endpoint as a host name or a string representation of an IP address and a port number.
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 classHttpUtilityProvides methods for encoding and decoding HTML and URL strings.
Public classHttpWebRequestProvides an HTTP-specific implementation of the WebRequest class.
Public classHttpWebResponseProvides 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 classNetworkCredentialProvides credentials for password-based authentication schemes such as basic, digest, NTLM, and Kerberos authentication.
Public classOpenReadCompletedEventArgsProvides data for the OpenReadCompleted event.
Public classOpenWriteCompletedEventArgsProvides data for the OpenWriteCompleted event.
Public classProtocolViolationExceptionThe exception that is thrown when an error is made while using a network protocol.
Public classSocketAddressStores serialized information from EndPoint derived classes.
Public classUploadProgressChangedEventArgsProvides data for the UploadProgressChanged event of a WebClient.
Public classUploadStringCompletedEventArgsProvides data for the UploadStringCompleted event.
Public classWebClientProvides common methods for sending data to and receiving data from a resource identified by a URI.
Public classWebExceptionThe exception that is thrown when an error occurs while accessing the network through a pluggable protocol.
Public classWebHeaderCollectionContains protocol headers associated with a request or response.
Public classWebRequestMakes a request to a Uniform Resource Identifier (URI). This is an abstract class.
Public classWebResponseProvides a response from a Uniform Resource Identifier (URI). This is an abstract class.
Public classWebUtilityProvides methods for encoding and decoding URLs when processing Web requests.
Public classWriteStreamClosedEventArgsProvides data for the WriteStreamClosed event.
  InterfaceDescription
Public interfaceICredentialsProvides the base authentication interface for retrieving credentials for Web client authentication.
Public interfaceICredentialsByHostProvides the interface for retrieving credentials for a host, port, and authentication type.
Public interfaceIWebRequestCreateProvides the base interface for creating WebRequest instances.
  DelegateDescription
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 delegateOpenReadCompletedEventHandlerRepresents the method that will handle the OpenReadAsync event of a WebClient.
Public delegateOpenWriteCompletedEventHandlerRepresents the method that will handle the OpenWriteCompleted 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 delegateWriteStreamClosedEventHandlerRepresents the method that will handle the WriteStreamClosed event of a WebClient.
  EnumerationDescription
Public enumerationAuthenticationSchemesSpecifies protocols for authentication.
Public enumerationHttpRequestHeaderThe HTTP headers that may be specified in a client request.
Public enumerationHttpStatusCodeContains the values of status codes defined for HTTP.
Public enumerationWebExceptionStatusDefines status codes for the WebException class.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.