F# Data


HtmlProvider

Namespace: FSharp.Data

Typed representation of an HTML file.

Static parameters

Static parametersDescription
Sample
Signature: string (optional, default = "")

Location of an HTML sample file or a string containing a sample HTML document.

PreferOptionals
Signature: bool (optional, default = false)

When set to true, inference will prefer to use the option type instead of nullable types, double.NaN or "" for missing values. Defaults to false.

IncludeLayoutTables
Signature: bool (optional, default = false)

Includes tables that are potentially layout tables (with cellpadding=0 and cellspacing=0 attributes)

MissingValues
Signature: string (optional, default = "")

The set of strings recogized as missing values. Defaults to NaN,NA,N/A,#N/A,:,-,TBA,TBD.

Culture
Signature: string (optional, default = "")

The culture used for parsing numbers and dates. Defaults to the invariant culture.

Encoding
Signature: string (optional, default = "")

The encoding used to read the sample. You can specify either the character set name or the codepage number. Defaults to UTF8 for files, and to ISO-8859-1 the for HTTP requests, unless charset is specified in the Content-Type response header.

ResolutionFolder
Signature: string (optional, default = "")

A directory that is used when resolving relative file references (at design time and in hosted execution).

EmbeddedResource
Signature: string (optional, default = "")

When specified, the type provider first attempts to load the sample from the specified resource (e.g. 'MyCompany.MyAssembly, resource_name.html'). This is useful when exposing types generated by the type provider.

Fork me on GitHub