Click or drag to resize

HtmlWeb Class

A utility class to get HTML document from HTTP.
Inheritance Hierarchy
SystemObject
  WorkflowGen.My.HtmlAgilityPackHtmlWeb

Namespace:  WorkflowGen.My.HtmlAgilityPack
Assembly:  WorkflowGen.My (in WorkflowGen.My.dll) Version: 4.3.0.0 (4.3.0.0)
Syntax
public class HtmlWeb

The HtmlWeb type exposes the following members.

Constructors
  NameDescription
Public methodHtmlWeb
Initializes a new instance of the HtmlWeb class
Top
Properties
  NameDescription
Public propertyAutoDetectEncoding
Gets or Sets a value indicating if document encoding must be automatically detected.
Public propertyCacheOnly
Gets or Sets a value indicating whether to get document only from the cache. If this is set to true and document is not found in the cache, nothing will be loaded.
Public propertyCachePath
Gets or Sets the cache path. If null, no caching mechanism will be used.
Public propertyFromCache
Gets a value indicating if the last document was retrieved from the cache.
Public propertyRequestDuration
Gets the last request duration in milliseconds.
Public propertyResponseUri
Gets the URI of the Internet resource that actually responded to the request.
Public propertyStatusCode
Gets the last request status.
Public propertyStreamBufferSize
Gets or Sets the size of the buffer used for memory operations.
Public propertyUseCookies
Gets or Sets a value indicating if cookies will be stored.
Public propertyUserAgent
Gets or Sets the User Agent HTTP 1.1 header sent on any webrequest
Public propertyUsingCache
Gets or Sets a value indicating whether the caching mechanisms should be used or not.
Top
Methods
  NameDescription
Public methodCreateInstance(String, Type)
Creates an instance of the given type from the specified Internet resource.
Public methodCreateInstance(String, String, XsltArgumentList, Type)
Creates an instance of the given type from the specified Internet resource.
Public methodCreateInstance(String, String, XsltArgumentList, Type, String)
Creates an instance of the given type from the specified Internet resource.
Public methodGet(String, String)
Gets an HTML document from an Internet resource and saves it to the specified file.
Public methodGet(String, String, String)
Gets an HTML document from an Internet resource and saves it to the specified file.
Public methodGet(String, String, WebProxy, NetworkCredential)
Gets an HTML document from an Internet resource and saves it to the specified file. - Proxy aware
Public methodGet(String, String, WebProxy, NetworkCredential, String)
Gets an HTML document from an Internet resource and saves it to the specified file. Understands Proxies
Public methodGetCachePath
Gets the cache file path for a specified url.
Public methodStatic memberGetContentTypeForExtension
Gets the MIME content type for a given path extension.
Public methodStatic memberGetExtensionForContentType
Gets the path extension for a given MIME content type.
Public methodLoad(String)
Gets an HTML document from an Internet resource.
Public methodLoad(String, String)
Loads an HTML document from an Internet resource.
Public methodLoad(String, String, WebProxy, NetworkCredential)
Loads an HTML document from an Internet resource.
Public methodLoad(String, String, Int32, String, String)
Gets an HTML document from an Internet resource.
Public methodLoadHtmlAsXml(String, XmlTextWriter)
Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter.
Public methodLoadHtmlAsXml(String, String, XsltArgumentList, XmlTextWriter)
Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter, after an XSLT transformation.
Public methodLoadHtmlAsXml(String, String, XsltArgumentList, XmlTextWriter, String)
Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter, after an XSLT transformation.
Top
Fields
  NameDescription
Public fieldPostResponse
Occurs after an HTTP request has been executed.
Public fieldPreHandleDocument
Occurs before an HTML document is handled.
Public fieldPreRequest
Occurs before an HTTP request is executed.
Top
See Also