Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
HttpWebRequest Methods

HttpWebRequest Methods

The HttpWebRequest type exposes the following members.

  Name Description
Public method Supported by Portable Class Library Abort Cancels a request to an Internet resource. (Overrides WebRequest.Abort().)
Public method AddRange(Int32) Adds a byte range header to a request for a specific range from the beginning or end of the requested data.
Public method AddRange(Int64) Adds a byte range header to a request for a specific range from the beginning or end of the requested data.
Public method AddRange(Int32, Int32) Adds a byte range header to the request for a specified range.
Public method AddRange(Int64, Int64) Adds a byte range header to the request for a specified range.
Public method AddRange(String, Int32) Adds a Range header to a request for a specific range from the beginning or end of the requested data.
Public method AddRange(String, Int64) Adds a Range header to a request for a specific range from the beginning or end of the requested data.
Public method AddRange(String, Int32, Int32) Adds a range header to a request for a specified range.
Public method AddRange(String, Int64, Int64) Adds a range header to a request for a specified range.
Public method Supported by Portable Class Library BeginGetRequestStream Begins an asynchronous request for a Stream object to use to write data. (Overrides WebRequest.BeginGetRequestStream(AsyncCallback, Object).)
Public method Supported by Portable Class Library BeginGetResponse Begins an asynchronous request to an Internet resource. (Overrides WebRequest.BeginGetResponse(AsyncCallback, Object).)
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Supported by Portable Class Library EndGetRequestStream(IAsyncResult) Ends an asynchronous request for a Stream object to use to write data. (Overrides WebRequest.EndGetRequestStream(IAsyncResult).)
Public method EndGetRequestStream(IAsyncResult, TransportContext) Ends an asynchronous request for a Stream object to use to write data and outputs the TransportContext associated with the stream.
Public method Supported by Portable Class Library EndGetResponse Ends an asynchronous request to an Internet resource. (Overrides WebRequest.EndGetResponse(IAsyncResult).)
Public method Supported by Portable Class Library Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Supported by Portable Class Library Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Supported by Portable Class Library GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method GetObjectData Infrastructure. Populates a SerializationInfo with the data required to serialize the target object. (Overrides WebRequest.GetObjectData(SerializationInfo, StreamingContext).)
Public method GetRequestStream() Gets a Stream object to use to write request data. (Overrides WebRequest.GetRequestStream().)
Public method GetRequestStream(TransportContext) Gets a Stream object to use to write request data and outputs the TransportContext associated with the stream.
Public method GetRequestStreamAsync When overridden in a descendant class, returns a Stream for writing data to the Internet resource as an asynchronous operation. (Inherited from WebRequest.)
Public method GetResponse Returns a response from an Internet resource. (Overrides WebRequest.GetResponse().)
Public method GetResponseAsync When overridden in a descendant class, returns a response to an Internet request as an asynchronous operation. (Inherited from WebRequest.)
Public method Supported by Portable Class Library GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method Supported by Portable Class Library MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public method Supported by Portable Class Library ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  Name Description
Explicit interface implemetation Private method ISerializable.GetObjectData Infrastructure. Populates a SerializationInfo with the data needed to serialize the target object.
Top
Show:
© 2015 Microsoft