Export (0) Print
Expand All

WebRequest Methods

The methods of the WebRequest class are listed here. For a complete list of WebRequest class members, see the WebRequest Members topic.

Public Methods

public methodAbort

Supported by the .NET Compact Framework.

Cancels an asynchronous request to an Internet resource.
public methodBeginGetRequestStream

Supported by the .NET Compact Framework.

When overridden in a descendant class, provides an asynchronous version of the GetRequestStream method.
public methodBeginGetResponse

Supported by the .NET Compact Framework.

When overridden in a descendant class, begins an asynchronous request for an Internet resource.
public methodstatic (Shared in Visual Basic)Create

Supported by the .NET Compact Framework.

Overloaded. Initializes a new WebRequest.
public methodstatic (Shared in Visual Basic)CreateDefault

Supported by the .NET Compact Framework.

Initializes a new WebRequest instance for the specified URI scheme.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodEndGetRequestStream

Supported by the .NET Compact Framework.

When overridden in a descendant class, returns a Stream for writing data to the Internet resource.
public methodEndGetResponse

Supported by the .NET Compact Framework.

When overridden in a descendant class, returns a WebResponse.
public methodEquals (inherited from Object)

Supported by the .NET Compact Framework.

Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object)

Supported by the .NET Compact Framework.

Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetRequestStream

Supported by the .NET Compact Framework.

When overridden in a descendant class, returns a Stream for writing data to the Internet resource.
public methodGetResponse

Supported by the .NET Compact Framework.

When overridden in a descendant class, returns a response to an Internet request.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodstatic (Shared in Visual Basic)RegisterPrefix

Supported by the .NET Compact Framework.

Registers a WebRequest descendant for the specified URI.
public methodToString (inherited from Object)

Supported by the .NET Compact Framework.

Returns a String that represents the current Object.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

WebRequest Class | System.Net Namespace

Show:
© 2014 Microsoft