Windows Dev Center

HttpWebRequest Methods

The HttpWebRequest type exposes the following members.

  NameDescription
Public method Abort Cancels a request to an Internet resource. (Overrides WebRequest.Abort().)
Public method BeginGetRequestStream Begins an asynchronous request for a Stream object to use to write data. (Overrides WebRequest.BeginGetRequestStream(AsyncCallback, Object).)
Public method BeginGetResponse Begins an asynchronous request to an Internet resource. (Overrides WebRequest.BeginGetResponse(AsyncCallback, Object).)
Public method EndGetRequestStream Ends an asynchronous request for a Stream object to use to write data. (Overrides WebRequest.EndGetRequestStream(IAsyncResult).)
Public method EndGetResponse Ends an asynchronous request to an Internet resource. (Overrides WebRequest.EndGetResponse(IAsyncResult).)
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Releases the resources held by the current HttpWebRequest instance. (Overrides Object.Finalize().)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetRequestStreamAsync When overridden in a descendent class, returns a Stream for writing data to the Internet resource as an asynchronous operation. (Overrides WebRequest.GetRequestStreamAsync().)
Public method GetResponseAsync When overridden in a descendant class, returns a response to an Internet request as an asynchronous operation. (Overrides WebRequest.GetResponseAsync().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

  NameDescription
Public Extension Method GetCurrentNetworkInterface Gets all available information about the network interface that corresponds to a web request. (Defined by WebRequestExtensions.)
Public Extension Method SetNetworkPreference Sets the preference for a web request to use either cellular or non-cellular technology. (Defined by WebRequestExtensions.)
Public Extension Method SetNetworkRequirement Sets the requirement for a web request to use either cellular or non-cellular technology. (Defined by WebRequestExtensions.)
Top

Show:
© 2015 Microsoft