FSharp.Data.Toolbox


ProvidedConstructor Type

Represents an erased provided constructor.

Constructors

Constructor Description

ProvidedConstructor(parameters, invokeCode)

Full Usage: ProvidedConstructor(parameters, invokeCode)

Parameters:
Returns: ProvidedConstructor

When making a cross-targeting type provider, use this method instead of the ProvidedConstructor constructor from ProvidedTypes

parameters : ProvidedParameter list
invokeCode : Expr list -> Expr
Returns: ProvidedConstructor

Instance members

Instance member Description

this.AddDefinitionLocation(line, column, filePath)

Full Usage: this.AddDefinitionLocation(line, column, filePath)

Parameters:
    line : int
    column : int
    filePath : string

Add definition location information to the provided constructor.

line : int
column : int
filePath : string

this.AddObsoleteAttribute(message, ?isError)

Full Usage: this.AddObsoleteAttribute(message, ?isError)

Parameters:
    message : string
    ?isError : bool

Add a 'Obsolete' attribute to this provided constructor

message : string
?isError : bool

this.AddXmlDoc(xmlDoc)

Full Usage: this.AddXmlDoc(xmlDoc)

Parameters:
    xmlDoc : string

Add XML documentation information to this provided constructor

xmlDoc : string

this.AddXmlDocComputed(xmlDocFunction)

Full Usage: this.AddXmlDocComputed(xmlDocFunction)

Parameters:
    xmlDocFunction : unit -> string

Add XML documentation information to this provided constructor, where the documentation is re-computed every time it is required.

xmlDocFunction : unit -> string

this.AddXmlDocDelayed(xmlDocFunction)

Full Usage: this.AddXmlDocDelayed(xmlDocFunction)

Parameters:
    xmlDocFunction : unit -> string

Add XML documentation information to this provided constructor, where the computation of the documentation is delayed until necessary

xmlDocFunction : unit -> string

this.BaseConstructorCall()

Full Usage: this.BaseConstructorCall()

Set the target and arguments of the base constructor call. Only used for generated types.

this.IsImplicitConstructor

Full Usage: this.IsImplicitConstructor

Set a flag indicating that the constructor acts like an F# implicit constructor, so the parameters of the constructor become fields and can be accessed using Expr.GlobalVar with the same name.

this.IsTypeInitializer

Full Usage: this.IsTypeInitializer