aspNetEmail

HtmlUtility Members

HtmlUtility overview

Public Instance Constructors

HtmlUtilityOverloaded. Initializes a new instance of the HtmlUtility class.

Public Instance Properties

AllowFileScheme Allows Html to be loaded from the file:/// scheme.
CharSetThe charset used for reading and manipulating the Html.
ContentLocation Content location of the resource.
Credentials Credentials used to download http:// or https:// Html code.
CssOptionThe CssOption used for manipulating any Css
EmbeddedImages The array of embedded images once the Html is Rendered.
EmbedImageOptionEmbeds images using the Content-ID or Content-Location headers.
FollowHttpRedirects Follows 302b redirects when loading Html from an http:// location.
FollowMetaTagRedirects Follow MetaTag redirects when LoadUrl() is called.
HtmlEncodeOptionThe option used for encoding any non-ascii content found in the Html
HtmlRemovalOptionsSets the various options for removing dangerous Html content.
ParentMessage The parent EmailMessage object.
Proxy Gets or sets the network proxy to use to access http content.
RawHtmlContent The original, unformatted Html content.
Referrer HTTP REFERRER to use when downloading remote data.
RenderedHtmlContent The resulting Html content
ResolveHrefs Resolves Hrefs to their absolute value.
SetHtmlBaseTag Adds a BASE tag to the Html head section.
SetUrlContentBase Sets the Url content base on the Parent EmailMessage object.
SynchronizingObject Gets or sets the object used to marshal the event handler calls issued as a result of events.
TimeOut The timeout (in ms) used when retrieving data from a http:// location.
UrlContentBase The root base of the URL the Html can be found at, or was downloaded.
UserAgent User-Agent string to present to the resource being downloaded from across the web.

Public Instance Methods

ClearEmbeddedImages Clears any embedded images.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
HtmlTitleOverloaded. Extracts the Html Title from the RawHtmlContent
HttpData Downloads data from a remote URL as a byte array
IsAlive Checks for a successful response from a URL.
LoadControlOverloaded. Populates the RawHtmlContent property from an ASP.NET server control
LoadFileOverloaded. Populates the RawHtmlContent property from a file.
LoadStringPopulates the RawHtmlContent property from a string.
LoadUrlPopulates the RawHtmlContent property from a http:// or file:/// location.
MetaTagOverloaded. Extracts the Meta tag content for a given name.
RenderOverloaded. Converts the RawHtmlContent to a properly formatted Html string compatable for emails..
Reset Resets all internal properties back to their original state, except for the ParentMessage object.
ToEmailMessageOverloaded. Creates an EmailMessage from Plain Text and Html Text formatted parts.
ToHtmlPartOverloaded. Converts the RenderedHtmlContent to a Html formatted MimeBodyPart
ToMHTBytesOverloaded. Converts the RawHtmlContent text to a MHTML byte array.
ToMHTFileOverloaded. Converts the RawHtmlContent text to a MHTML formatted file.
ToMHTStringConverts this RawHtmlContent text to a MHTML formatted string.
ToPlainTextOverloaded. Converts the RenderedHtmlContent to formatted Plain Text
ToPlainTextPartOverloaded. Converts the RenderedHtmlContent to a Plain Text MimeBodyPart
ToString (inherited from Object)Returns a String that represents the current Object.
WriteMHTStreamConverts RenderedHtmlContent string to MHTML and writes it to the stream.

Public Instance Events

BeforeWebRequest A BeforeWebReques t event has occurred.
CreateEmbeddedObject A CreateEmbeddedObject event has occurred.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.
OnBeforeWebRequest Raises the BeforeWebRequest event.
OnCreateEmbeddedObject Raises the CreateEmbeddedObject event.

See Also

HtmlUtility Class | aspNetEmail Namespace