This documentation is archived and is not being maintained.

WebRequest Members

WebRequest overview

Public Properties

public propertyConnectionGroupName

Supported by the .NET Compact Framework.

When overridden in a descendant class, gets or sets the name of the connection group for the request.
public propertyContentLength

Supported by the .NET Compact Framework.

When overridden in a descendant class, gets or sets the content length of the request data being sent.
public propertyContentType

Supported by the .NET Compact Framework.

When overridden in a descendant class, gets or sets the content type of the request data being sent.
public propertyCredentials

Supported by the .NET Compact Framework.

When overridden in a descendant class, gets or sets the network credentials used for authenticating the request with the Internet resource.
public propertyHeaders

Supported by the .NET Compact Framework.

When overridden in a descendant class, gets or sets the collection of header name/value pairs associated with the request.
public propertyMethod

Supported by the .NET Compact Framework.

When overridden in a descendant class, gets or sets the protocol method to use in this request.
public propertyPreAuthenticate

Supported by the .NET Compact Framework.

When overridden in a descendant class, indicates whether to preauthenticate the request.
public propertyProxy

Supported by the .NET Compact Framework.

When overridden in a descendant class, gets or sets the network proxy to use to access this Internet resource.
public propertyRequestUri

Supported by the .NET Compact Framework.

When overridden in a descendant class, gets the URI of the Internet resource associated with the request.
public propertyTimeout

Supported by the .NET Compact Framework.

Gets or sets the length of time before the request times out.

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 Constructors

protected constructorWebRequest Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new instance of the WebRequest class.

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: