Processor Class
Helper class which provides properties and methods for loading or saving HTML document from/into a stream and examining its contents.
Inheritance Hierarchy
SystemObject
  MailBee.HtmlProcessor

Namespace: MailBee.Html
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 12.5.0 build 687 for .NET 4.5
Syntax
public class Processor

The Processor type exposes the following members.

Constructors
  NameDescription
Public methodProcessor
Initializes a new instance of the Processor class
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLoadFromStream
Loads HTML markup from a stream.
Public methodLoadFromStreamAsync
async/await version of LoadFromStream(Stream, Encoding).
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSaveToStream
Saves HTML markup into a stream.
Public methodSaveToStreamAsync
async/await version of SaveToStream(Stream, Encoding).
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyAHRefs
Gets the list of all links (<A HREF> tags) in Dom HTML document.
Public propertyDom
Gets the root Element object which represents the entire HTML document.
Public propertyImages
Gets the list of all <IMG> tags in Dom HTML document.
Public propertyLastResult
Gets the code of the last occurred error.
Public propertyThrowExceptions
Gets or sets whether the object will throw exceptions on errors.
Top
Remarks

Use this class if you need to load HTML document from a stream (or save it into a stream) or access the collections of links or images contained in the document. In other cases, you can use Element class on its own.

As alternative to using this class, you can create Element object directly and use the standard stream classes of .NET framework to fill this Element object with data. To access links, images, or any other elements, you can use GetAllElementsByName(String) method.

Examples
The example is available in AddTagRemovalRule(String, TagAttributeCollection) topic.
See Also