Qit


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

Full Usage: this.AddDefinitionLocation

Parameters:
    line : int
    column : int
    filePath : string

Add definition location information to the provided constructor.

line : int
column : int
filePath : string

this.AddObsoleteAttribute

Full Usage: this.AddObsoleteAttribute

Parameters:
    message : string
    ?isError : bool

Add a 'Obsolete' attribute to this provided constructor

message : string
?isError : bool

this.AddXmlDoc

Full Usage: this.AddXmlDoc

Parameters:
    xmlDoc : string

Add XML documentation information to this provided constructor

xmlDoc : string

this.AddXmlDocComputed

Full Usage: this.AddXmlDocComputed

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

Full Usage: this.AddXmlDocDelayed

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