Table of Contents

Class CreateDocumentOptions

Namespace
AngleSharp.Dom
Assembly
AngleSharp.dll

Data transport class to abstract common options in document creation.

public sealed class CreateDocumentOptions
Inheritance
CreateDocumentOptions
Inherited Members
Extension Methods

Constructors

CreateDocumentOptions(IResponse, Encoding?, IDocument?)

Creates a new set of document options from the given response with the provided configuration.

public CreateDocumentOptions(IResponse response, Encoding? encoding = null, IDocument? ancestor = null)

Parameters

response IResponse

The response to pass on.

encoding Encoding

The optional default encoding.

ancestor IDocument

The optional import ancestor.

Properties

ContentType

Gets the provided content-type.

public MimeType ContentType { get; }

Property Value

MimeType

ImportAncestor

Gets the import ancestor, if any.

public IDocument? ImportAncestor { get; }

Property Value

IDocument

Response

Gets the response to create the document for.

public IResponse Response { get; }

Property Value

IResponse

Source

Gets the text source that came with the response.

public TextSource Source { get; }

Property Value

TextSource