HtmlWeb Members

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image

The HtmlWeb type exposes the following members.

Constructors

  NameDescription
Public methodHtmlWeb
Initializes a new instance of the HtmlWeb class

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 methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
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 methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
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.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

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.

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 propertyOverrideEncoding
Gets or sets the Encoding used to override the response stream from any web request
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.

See Also