Share via


WebRequest Members

The following tables list the members exposed by the WebRequest type.

Protected Constructors

Name Description
Protected Method WebRequest Initializes a new instance of the WebRequest class.

Public Properties

Name Description
Public Property ConnectionGroupName When overridden in a descendant class, gets or sets the name of the connection group for the request.
Public Property ContentLength When overridden in a descendant class, gets or sets the content length of the request data being sent.
Public Property ContentType When overridden in a descendant class, gets or sets the content type of the request data being sent.
Public Property Static DefaultWebProxy Gets or sets the global HTTP proxy.
Public Property Headers When overridden in a descendant class, gets or sets the collection of header name/value pairs associated with the request.
Public Property Method When overridden in a descendant class, gets or sets the protocol method to use in this request.
Public Property Proxy When overridden in a descendant class, gets or sets the network proxy to use to access this Internet resource.
Public Property RequestUri When overridden in a descendant class, gets the URI of the Internet resource associated with the request.
Public Property Timeout Gets or sets the length of time, in milliseconds, before the request times out.

Public Methods

Name Description
Public Method Static Create Overloaded. Creates a WebRequest instance.
Public Method Equals (Inherited from Object.)
Public Method GetHashCode (Inherited from Object.)
Public Method GetRequestStream When overridden in a descendant class, returns a Stream for writing data to the Internet resource.
Public Method GetResponse When overridden in a descendant class, returns a response to an Internet request.
Public Method GetType (Inherited from Object.)
Public Method ReferenceEquals (Inherited from Object.)
Public Method Static RegisterPrefix Registers a WebRequest descendant for the specified URI.
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

WebRequest Class
System.Net Namespace