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
IResponseThe response to pass on.
encoding
EncodingThe optional default encoding.
ancestor
IDocumentThe optional import ancestor.
Properties
ContentType
Gets the provided content-type.
public MimeType ContentType { get; }
Property Value
ImportAncestor
Gets the import ancestor, if any.
public IDocument? ImportAncestor { get; }
Property Value
Response
Gets the response to create the document for.
public IResponse Response { get; }
Property Value
Source
Gets the text source that came with the response.
public TextSource Source { get; }