System::Net Namespace Reference

Namespaces

 Cache
 
 Details
 
 Http
 
 NetworkInformation
 
 Security
 
 Sockets
 

Classes

class  Cookie
 Represents an HTTP cookie. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  CookieComparer
 Used to compare the Cookie class instances. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  CookieParser
 Used to parse a cookie header and create an instance of the Cookie class. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  CookieCollection
 Represents a list of sorted cookies. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  HeaderVariantInfo
 Used to match the cookie name and specification. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  PathList
 Represents the list of the CookieCollection class instances. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  CookieContainer
 Provides a container for the CookieCollection-class instances. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  Details_CookieException
 Represents an exception thrown when the size of CookieContainer is greater than the MaxCookieSize property value. Never create instances of this class manually. Use the CookieException class instead. Never wrap the CookieException class instances into System::SmartPtr. More...
 
class  CredentialCache
 Provides the credentials storage. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  Dns
 Provides methods to work with DNS. More...
 
class  DnsEndPoint
 Contains information used by the application to connect to the service. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  EndPoint
 The abstract class contains a network address. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  FileWebRequest
 Provides implementation of the WebRequest abstract class to work with the file system. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  FileWebResponse
 Provides implementation of the WebResponse abstract class to work with the file system. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  HttpKnownHeaderNames
 Contains the string values of the known header names. More...
 
class  HttpRequestHeaderExtensions
 Contains utility methods to work with the HttpRequestHeader enumeration values. More...
 
class  HttpResponseHeaderExtensions
 Contains utility methods to work with the HttpResponseHeader enumeration values. More...
 
class  HttpStatusDescription
 Contains the utility methods to get the string representation of the HTTP status. More...
 
class  HttpVersion
 Contains versions of HTTP. More...
 
class  HttpWebRequest
 Represents the HTTP web request. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  HttpWebResponse
 Represents the HTTP web response. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  ICredentials
 Provides the authentication interface. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  ICredentialsByHost
 Provides the authentication interface for retrieving credentials for a host, port, and authentication type. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  IPAddress
 Represents the IP address. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  IPEndPoint
 Represents a network endpoint that contains an IP address and a port. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  IPHostEntry
 Represents information about an internet host address. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  IWebProxy
 This interface used for implementation of proxy access to the WebRequest class. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  IWebRequestCreate
 Provides the methods for creating the WebRequest class instances. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  NetworkCredential
 Provides credentials for the password-based authentication schemes. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  ServicePoint
 Provides HTTP connection management. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  ServicePointManager
 Manages the lifecycle stages (creating, maintaining, and deleting) of the ServicePoint class instances. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  SocketAddress
 Used to store serialized information about the EndPoint class instances. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  UriScheme
 Represent the scheme for URI. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  WebClient
 WebClient provides common methods for sending and receiving data. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  Details_WebException
 Represents the exception that is thrown by WebRequest when an error occurs. Never create instances of this class manually. Use the WebException class instead. Never wrap the WebException class instances into System::SmartPtr. More...
 
class  WebHeaderCollection
 Represents the collection of the protocol headers. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  WebProxy
 Represents an http web-proxy server. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  WebRequest
 Represents a web request. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  WebRequestMethods
 Represents the string constants of web requests. More...
 
class  WebResponse
 Represents a web response. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  FtpWebResponse
 Dummy class making it possible linking ported code with FtpWebResponse references, but not executing it. Contains no properly implemented members. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument. More...
 
class  FtpWebRequest
 Implements a File Transfer Protocol (FTP) client. Dummy class making it possible linking ported code with FtpWebRequest references, but not executing it. Contains no properly implemented members. More...
 

Typedefs

using CookieException = System::ExceptionWrapper< Details_CookieException >
 
using BindIPEndPoint = System::MulticastDelegate< System::SharedPtr< IPEndPoint >(System::SharedPtr< ServicePoint >, System::SharedPtr< IPEndPoint >, int32_t)>
 
using WebException = System::ExceptionWrapper< Details_WebException >
 

Enumerations

enum class  AuthenticationSchemes {
  None = 0x00000000 , Digest = 0x00000001 , Negotiate = 0x00000002 , Ntlm = 0x00000004 ,
  Basic = 0x00000008 , Anonymous = 0x00008000 , IntegratedWindowsAuthentication = static_cast<int32_t>(Negotiate | Ntlm)
}
 Enumerates the authentication schemes. More...
 
enum class  CookieVariant {
  Unknown , Plain , Rfc2109 , Rfc2965 ,
  Default = static_cast<int32_t>(Rfc2109)
}
 Enumerates the cookie specifications. More...
 
enum class  DecompressionMethods { None = 0 , GZip = 1 , Deflate = 2 }
 Enumerates the compression-decompression algorithm. More...
 
enum class  HttpRequestHeader {
  CacheControl = 0 , Connection = 1 , Date = 2 , KeepAlive = 3 ,
  Pragma = 4 , Trailer = 5 , TransferEncoding = 6 , Upgrade = 7 ,
  Via = 8 , Warning = 9 , Allow = 10 , ContentLength = 11 ,
  ContentType = 12 , ContentEncoding = 13 , ContentLanguage = 14 , ContentLocation = 15 ,
  ContentMd5 = 16 , ContentRange = 17 , Expires = 18 , LastModified = 19 ,
  Accept = 20 , AcceptCharset = 21 , AcceptEncoding = 22 , AcceptLanguage = 23 ,
  Authorization = 24 , Cookie = 25 , Expect = 26 , From = 27 ,
  Host = 28 , IfMatch = 29 , IfModifiedSince = 30 , IfNoneMatch = 31 ,
  IfRange = 32 , IfUnmodifiedSince = 33 , MaxForwards = 34 , ProxyAuthorization = 35 ,
  Referer = 36 , Range = 37 , Te = 38 , Translate = 39 ,
  UserAgent = 40
}
 Enumerates the request headers. More...
 
enum class  HttpResponseHeader {
  CacheControl = 0 , Connection = 1 , Date = 2 , KeepAlive = 3 ,
  Pragma = 4 , Trailer = 5 , TransferEncoding = 6 , Upgrade = 7 ,
  Via = 8 , Warning = 9 , Allow = 10 , ContentLength = 11 ,
  ContentType = 12 , ContentEncoding = 13 , ContentLanguage = 14 , ContentLocation = 15 ,
  ContentMd5 = 16 , ContentRange = 17 , Expires = 18 , LastModified = 19 ,
  AcceptRanges = 20 , Age = 21 , ETag = 22 , Location = 23 ,
  ProxyAuthenticate = 24 , RetryAfter = 25 , Server = 26 , SetCookie = 27 ,
  Vary = 28 , WwwAuthenticate = 29
}
 Enumerates the http response headers. More...
 
enum class  HttpStatusCode {
  Continue = 100 , SwitchingProtocols = 101 , OK = 200 , Created = 201 ,
  Accepted = 202 , NonAuthoritativeInformation = 203 , NoContent = 204 , ResetContent = 205 ,
  PartialContent = 206 , MultipleChoices = 300 , Ambiguous = 300 , MovedPermanently = 301 ,
  Moved = 301 , Found = 302 , Redirect = 302 , SeeOther = 303 ,
  RedirectMethod = 303 , NotModified = 304 , UseProxy = 305 , Unused = 306 ,
  TemporaryRedirect = 307 , RedirectKeepVerb = 307 , PermanentRedirect = 308 , BadRequest = 400 ,
  Unauthorized = 401 , PaymentRequired = 402 , Forbidden = 403 , NotFound = 404 ,
  MethodNotAllowed = 405 , NotAcceptable = 406 , ProxyAuthenticationRequired = 407 , RequestTimeout = 408 ,
  Conflict = 409 , Gone = 410 , LengthRequired = 411 , PreconditionFailed = 412 ,
  RequestEntityTooLarge = 413 , RequestUriTooLong = 414 , UnsupportedMediaType = 415 , RequestedRangeNotSatisfiable = 416 ,
  ExpectationFailed = 417 , UpgradeRequired = 426 , InternalServerError = 500 , NotImplemented = 501 ,
  BadGateway = 502 , ServiceUnavailable = 503 , GatewayTimeout = 504 , HttpVersionNotSupported = 505
}
 
enum class  SecurityProtocolType {
  SystemDefault = 0 , Ssl3 = 48 , Tls = 192 , Tls11 = 768 ,
  Tls12 = 3072
}
 Enumerates the security protocol types. More...
 
enum class  TransportType {
  Udp = 1 , Connectionless = Udp , Tcp = 2 , ConnectionOriented = Tcp ,
  All = 3
}
 Defines the transport type allowed for the socket. More...
 
enum class  WebExceptionStatus {
  Success = 0 , NameResolutionFailure = 1 , ConnectFailure = 2 , ReceiveFailure = 3 ,
  SendFailure = 4 , PipelineFailure = 5 , RequestCanceled = 6 , ProtocolError = 7 ,
  ConnectionClosed = 8 , TrustFailure = 9 , SecureChannelFailure = 10 , ServerProtocolViolation = 11 ,
  KeepAliveFailure = 12 , Pending = 13 , Timeout = 14 , ProxyNameResolutionFailure = 15 ,
  UnknownError = 16 , MessageLengthLimitExceeded = 17 , CacheEntryNotFound = 18 , RequestProhibitedByCachePolicy = 19 ,
  RequestProhibitedByProxy = 20
}
 Enumerates the status codes of the WebException class. More...
 
enum class  WebHeaderCollectionType : uint8_t { Unknown , WebRequest , WebResponse }
 Enumerates the types of the protocol headers collection. More...
 

Functions

 DECLARE_ENUM_OPERATORS (System::Net::AuthenticationSchemes)
 Declaration of template arithmetic operators for values of the AuthenticationSchemes enum type. More...
 
 DECLARE_ENUM_OPERATORS (System::Net::DecompressionMethods)
 Declaration of template arithmetic operators for values of DecompressionMethods enum type. More...
 
 DECLARE_ENUM_OPERATORS (System::Net::SecurityProtocolType)
 Declaration of template arithmetic operators for values of the DecompressionMethods enum type. More...
 

Typedef Documentation

◆ BindIPEndPoint

◆ CookieException

◆ WebException

Enumeration Type Documentation

◆ AuthenticationSchemes

Enumerates the authentication schemes.

Enumerator
None 

No authentication is required.

Digest 

Digest access authentication.

Negotiate 

Negotiates with the client which authentication scheme will be used (NTML or Kerberos).

Ntlm 

NTLM authentication.

Basic 

Basic authentication.

Anonymous 

Anonymous authentication.

IntegratedWindowsAuthentication 

Windows authentication.

◆ CookieVariant

Enumerates the cookie specifications.

Enumerator
Unknown 

The unknown cookie specification.

Plain 

The plain cookie specification.

Rfc2109 

The 'RFC 2109' cookie specification.

Rfc2965 

The 'RFC 2965' cookie specification.

Default 

The default value equal to 'Rfc2109'.

◆ DecompressionMethods

Enumerates the compression-decompression algorithm.

Enumerator
None 

The compression-decompression algorithm is not used.

GZip 

The gZip compression-decompression algorithm.

Deflate 

The deflate compression-decompression algorithm.

◆ HttpRequestHeader

Enumerates the request headers.

Enumerator
CacheControl 

The 'Cache-Control' header.

Connection 

The 'Connection' header.

Date 

The 'Date' header.

KeepAlive 

The 'Keep-Alive' header.

Pragma 

The 'Pragma' header.

Trailer 

The 'Trailer' header.

TransferEncoding 

The 'Transfer-Encoding' header.

Upgrade 

The 'Upgrade' header.

Via 

The 'Via' header.

Warning 

The 'Warning' header.

Allow 

The 'Allow' header.

ContentLength 

The 'Content-Length' header.

ContentType 

The 'Content-Type' header.

ContentEncoding 

The 'Content-Encoding' header.

ContentLanguage 

The 'Content-Language' header.

ContentLocation 

The 'Content-Location' header.

ContentMd5 

The 'Content-MD5' header.

ContentRange 

The 'Content-Range' header.

Expires 

The 'Expires' header.

LastModified 

The 'Last-Modified' header.

Accept 

The 'Accept' header.

AcceptCharset 

The 'Accept-Charset' header.

AcceptEncoding 

The 'Accept-Encoding' header.

AcceptLanguage 

The 'Accept-Language' header.

Authorization 

The 'Authorization' header.

Cookie 

The 'Cookie' header.

Expect 

The 'Expect' header.

From 

The 'From' header.

Host 

The 'Host' header.

IfMatch 

The 'If-Match' header.

IfModifiedSince 

The 'If-Modified-Since' header.

IfNoneMatch 

The 'If-None-Match' header.

IfRange 

The 'If-Range' header.

IfUnmodifiedSince 

The 'If-Unmodified-Since' header.

MaxForwards 

The 'Max-Forwards' header.

ProxyAuthorization 

The 'Proxy-Authorization' header.

Referer 

The 'Referer' header.

Range 

The 'Range' header.

Te 

The 'TE' header.

Translate 

The 'Translate' header.

UserAgent 

The 'User-Agent' header.

◆ HttpResponseHeader

Enumerates the http response headers.

Enumerator
CacheControl 

The 'Cache-Control' header.

Connection 

The 'Connection' header.

Date 

The 'Date' header.

KeepAlive 

The 'Keep-Alive' header.

Pragma 

The 'Pragma' header.

Trailer 

The 'Trailer' header.

TransferEncoding 

The 'Transfer-Encoding' header.

Upgrade 

The 'Upgrade' header.

Via 

The 'Via' header.

Warning 

The 'Warning' header.

Allow 

The 'Allow' header.

ContentLength 

The 'Content-Length' header.

ContentType 

The 'Content-Type' header.

ContentEncoding 

The 'Content-Encoding' header.

ContentLanguage 

The 'Content-Language' header.

ContentLocation 

The 'Content-Location' header.

ContentMd5 

The 'Content-MD5' header.

ContentRange 

The 'Content-Range' header.

Expires 

The 'Expires' header.

LastModified 

The 'Last-Modified' header.

AcceptRanges 

The 'Accept-Ranges' header.

Age 

The 'Age' header.

ETag 

The 'ETag' header.

Location 

The 'Location' header.

ProxyAuthenticate 

The 'Proxy-Authenticate' header.

RetryAfter 

The 'Retry-After' header.

Server 

The 'Server' header.

SetCookie 

The 'Set-Cookie' header.

Vary 

The 'Vary' header.

WwwAuthenticate 

The 'WWW-Authenticate' header.

◆ HttpStatusCode

Enumerator
Continue 

The 'Continue' status code that equals to HTTP status 100.

SwitchingProtocols 

The 'Switching Protocol' status code that equals to HTTP status 101.

OK 

The 'OK' status code that equals to HTTP status 200.

Created 

The 'Created' status code that equals to HTTP status 201.

Accepted 

The 'Accepted' status code that equals to HTTP status 202.

NonAuthoritativeInformation 

The 'Non-Authoritative Information' status code that equals to HTTP status 203.

NoContent 

The 'No Content' status code that equals to HTTP status 204.

ResetContent 

The 'Reset Content' status code that equals to HTTP status 205.

PartialContent 

The 'Partial Content' status code that equals to HTTP status 206.

MultipleChoices 

The 'Multiple Choice' status code that equals to HTTP status 300.

Ambiguous 

The 'Ambiguous' status code that equals to HTTP status 300.

MovedPermanently 

The 'Moved Permanently' status code that equals to HTTP status 301.

Moved 

The 'Moved' status code that equals to HTTP status 301.

Found 

The 'Found' status code that equals to HTTP status 302.

Redirect 

The 'Redirect' status code that equals to HTTP status 302.

SeeOther 

The 'See Other' status code that equals to HTTP status 303.

RedirectMethod 

The 'Redirect' status code that equals to HTTP status 303.

NotModified 

The 'Not Modified' status code that equals to HTTP status 304.

UseProxy 

The 'Use Proxy' status code that equals to HTTP status 305.

Unused 

The 'Switch Proxy' status code that equals to HTTP status 306.

TemporaryRedirect 

The 'Temporary Redirect' status code that equals to HTTP status 307.

RedirectKeepVerb 

The 'Redirect Keep Verb' status code that equals to HTTP status 307.

PermanentRedirect 

The 'Permanent Redirect' status code that equals to HTTP status 308.

BadRequest 

The 'Bad Request' status code that equals to HTTP status 400.

Unauthorized 

The 'Unauthorized' status code that equals to HTTP status 401.

PaymentRequired 

The 'Payment Required' status code that equals to HTTP status 402.

Forbidden 

The 'Forbidden' status code that equals to HTTP status 403.

NotFound 

The 'Not Found' status code that equals to HTTP status 404.

MethodNotAllowed 

The 'Method Not Allowed' status code that equals to HTTP status 405.

NotAcceptable 

The 'Not Acceptable' status code that equals to HTTP status 406.

ProxyAuthenticationRequired 

The 'Proxy Authentication Required' status code that equals to HTTP status 407.

RequestTimeout 

The 'Request Timeout' status code that equals to HTTP status 408.

Conflict 

The 'Conflict' status code that equals to HTTP status 409.

Gone 

The 'Gone' status code that equals to HTTP status 410.

LengthRequired 

The 'Length Required' status code that equals to HTTP status 411.

PreconditionFailed 

The 'Precondition Failed' status code that equals to HTTP status 412.

RequestEntityTooLarge 

The 'Request Entity Too Large' status code that equals to HTTP status 413.

RequestUriTooLong 

The 'Request-URI Too Long' status code that equals to HTTP status 414.

UnsupportedMediaType 

The 'Unsupported Media Type' status code that equals to HTTP status 415.

RequestedRangeNotSatisfiable 

The 'Requested Range Not Satisfiable' status code that equals to HTTP status 416.

ExpectationFailed 

The 'Expectation Failed' status code that equals to HTTP status 417.

UpgradeRequired 

The 'Upgrade Required' status code that equals to HTTP status 426.

InternalServerError 

The 'Internal Server Error' status code that equals to HTTP status 500.

NotImplemented 

The 'Not Implemented' status code that equals to HTTP status 501.

BadGateway 

The 'Bad Gateway' status code that equals to HTTP status 502.

ServiceUnavailable 

The 'Service Unavailable' status code that equals to HTTP status 503.

GatewayTimeout 

The 'Gateway Timeout' status code that equals to HTTP status 504.

HttpVersionNotSupported 

The 'HTTP Version Not Supported' status code that equals to HTTP status 505.

◆ SecurityProtocolType

Enumerates the security protocol types.

Enumerator
SystemDefault 

The default system value must be used.

Ssl3 

The SSL 3.0 protocol.

Tls 

The TLS 1.0 protocol.

Tls11 

The TLS 1.1 protocol.

Tls12 

The TLS 1.2 protocol.

◆ TransportType

Defines the transport type allowed for the socket.

Enumerator
Udp 

The UDP transport type.

Connectionless 

The transport type is connectionless.

Tcp 

The TCP transport type.

ConnectionOriented 

The transport is connection oriented.

All 

All transport types.

◆ WebExceptionStatus

Enumerates the status codes of the WebException class.

Enumerator
Success 

No errors occurred.

NameResolutionFailure 

The name resolver service could not resolve the host name.

ConnectFailure 

The remote service point could not be contacted at the transport level.

ReceiveFailure 

A complete response is not received from the remote server.

SendFailure 

A complete request could not be sent to the remote server.

PipelineFailure 

The request was a pipelined request and the connection was closed before the response was received.

RequestCanceled 

The request was canceled or an unclassifiable error occurred.

ProtocolError 

The response received from the server was complete but indicated a protocol-level error.

ConnectionClosed 

The connection was prematurely closed.

TrustFailure 

A server certificate could not be validated.

SecureChannelFailure 

An error occurred while establishing a connection using SSL.

ServerProtocolViolation 

The server response was not a valid HTTP response.

KeepAliveFailure 

The connection for a request that specifies the 'Keep-Alive' header was closed unexpectedly.

Pending 

An internal asynchronous request is pending.

Timeout 

No response was received during the time-out period for a request.

ProxyNameResolutionFailure 

The name resolver service could not resolve the proxy host name.

UnknownError 

An exception of unknown type has occurred.

MessageLengthLimitExceeded 

A message that exceeded the specified limit was received.

CacheEntryNotFound 

The specified cache entry was not found.

RequestProhibitedByCachePolicy 

The request was not permitted by the cache policy.

RequestProhibitedByProxy 

This request was not permitted by the proxy.

◆ WebHeaderCollectionType

Enumerates the types of the protocol headers collection.

Enumerator
Unknown 

A collection contains an unknown type elements.

WebRequest 

A collection contains the headers of web requests.

WebResponse 

A collection contains the headers of web response.

Function Documentation

◆ DECLARE_ENUM_OPERATORS() [1/3]

System::Net::DECLARE_ENUM_OPERATORS ( System::Net::AuthenticationSchemes  )

Declaration of template arithmetic operators for values of the AuthenticationSchemes enum type.

◆ DECLARE_ENUM_OPERATORS() [2/3]

System::Net::DECLARE_ENUM_OPERATORS ( System::Net::DecompressionMethods  )

Declaration of template arithmetic operators for values of DecompressionMethods enum type.

◆ DECLARE_ENUM_OPERATORS() [3/3]

System::Net::DECLARE_ENUM_OPERATORS ( System::Net::SecurityProtocolType  )

Declaration of template arithmetic operators for values of the DecompressionMethods enum type.