Class FragmentParserContext

Represents the source data and context that is used when doing fragment parsing.

Inheritance
System.Object
FragmentParserContext
Implements
System.IDisposable
Namespace: EPiServer.Core.Html.StringParsing
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
public class FragmentParserContext : Object, IDisposable

Constructors

FragmentParserContext()

Declaration
public FragmentParserContext()

Properties

BufferedHtml

Gets or sets the buffered HTML used to create the resulting string fragment collection.

Declaration
public StringWriter BufferedHtml { get; set; }
Property Value
Type Description
System.IO.StringWriter

EvaluateHash

Gets or sets a value indicating whether any hashes will be evaluated.

Declaration
public bool EvaluateHash { get; set; }
Property Value
Type Description
System.Boolean

ParserMode

Gets or sets the current parser mode to use.

Declaration
public FragmentParserMode ParserMode { get; set; }
Property Value
Type Description
FragmentParserMode

ResultFragments

Gets or sets a collection of the resulting string fragments.

Declaration
public StringFragmentCollection ResultFragments { get; set; }
Property Value
Type Description
StringFragmentCollection

SourceFragments

Gets or sets a fragment enumerator for the source HTML.

Declaration
public IEnumerator<HtmlFragment> SourceFragments { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerator<HtmlFragment>

Methods

Dispose()

Disposes the FragmentParserContext

Declaration
public void Dispose()

Dispose(Boolean)

Releases unmanaged and - optionally - managed resources

Declaration
protected virtual void Dispose(bool cleanManaged)
Parameters
Type Name Description
System.Boolean cleanManaged

true to release both managed and unmanaged resources; false to release only unmanaged resources.

FlushBufferedHtml()

Writes the buffered HTML to the resulting fragments collection and clears the buffer.

Declaration
public virtual void FlushBufferedHtml()

Implements

System.IDisposable

Extension Methods