Class WebRequest
Makes a request to a Uniform Resource Identifier (URI). This is an abstract class.
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Eclo.nF.SIM800H
Assembly: cs.temp.dll.dll
Syntax
public abstract class WebRequest : IDisposable
Remarks
This is the base class of all Web resource/protocol objects. This class provides common methods, data and properties for making the top-level request. Implementation follows .NETMF System.Net.WebRequest
Constructors
WebRequest()
Initializes a new instance of the WebRequest class.
Declaration
protected WebRequest()
Properties
UserAgent
Gets or sets the value of the User-Agent HTTP header.
Declaration
public string UserAgent { get; set; }
Property Value
Type | Description |
---|---|
System.String | The value of the User-agent HTTP header. The default value is null. |
Methods
Create(Uri)
Creates a
Declaration
public static WebRequest Create(Uri requestUri)
Parameters
Type | Name | Description |
---|---|---|
Uri | requestUri | A Uri containing the URI of the requested resource. |
Returns
Type | Description |
---|---|
WebRequest |
Remarks
This is the main creation routine. The specified Uri is looked up in the prefix match table, and the appropriate handler is invoked to create the object.
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Finalize()
Declaration
protected void Finalize()
Implements
System.IDisposable