WebRequest Methods

July 28, 2014

The WebRequest type exposes the following members.

  NameDescription
Public method Abort Aborts the Request.
Public method BeginGetRequestStream When overridden in a descendant class, provides an asynchronous method to request a stream.
Public method BeginGetResponse When overridden in a descendant class, begins an asynchronous request for an Internet resource.
Public method Static member Create(String) Initializes a new WebRequest instance for the specified URI scheme.
Public method Static member Create(Uri) Initializes a new WebRequest instance for the specified URI scheme.
Public method Static member CreateHttp(String) Initializes a new HttpWebRequest instance for the specified URI string.
Public method Static member CreateHttp(Uri) Initializes a new HttpWebRequest instance for the specified URI.
Public method EndGetRequestStream When overridden in a descendant class, returns a Stream for writing data to the Internet resource.
Public method EndGetResponse When overridden in a descendant class, returns a WebResponse.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetRequestStreamAsync When overridden in a descendant class, returns a Stream for writing data to the Internet resource as an asynchronous operation.
Public method GetResponseAsync When overridden in a descendant class, returns a response to an Internet request as an asynchronous operation.
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 Static member RegisterPrefix Registers a WebRequest descendant for the specified URI.
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:
© 2014 Microsoft