Table of Contents

Class FormDataSetEntry

Namespace
AngleSharp.Html.Forms
Assembly
AngleSharp.dll

Encapsulates the data contained in an entry.

public abstract class FormDataSetEntry
Inheritance
FormDataSetEntry
Inherited Members
Extension Methods

Constructors

FormDataSetEntry(string, string)

Creates a new form data set entry.

public FormDataSetEntry(string name, string type)

Parameters

name string

The name of the field.

type string

The type of the field.

Properties

HasName

Gets if the name has been given.

public bool HasName { get; }

Property Value

bool

Name

Gets the entry's name.

public string Name { get; }

Property Value

string

Type

Gets the entry's type.

public string Type { get; }

Property Value

string

Methods

Accept(IFormDataSetVisitor)

Accepts the provided visitor instance.

public abstract void Accept(IFormDataSetVisitor visitor)

Parameters

visitor IFormDataSetVisitor

The visitor to accept.

Contains(string, Encoding)

Checks if the provided boundary is already mentioned in the content.

public abstract bool Contains(string boundary, Encoding encoding)

Parameters

boundary string

The string to check for.

encoding Encoding

The encoding to use for the string.

Returns

bool

True if the boundary is matched, otherwise false.