FSharp.Data.Toolbox


ProvidedMethod Type

Constructors

Constructor Description

ProvidedMethod(methodName, parameters, returnType, ?invokeCode, ?isStatic)

Full Usage: ProvidedMethod(methodName, parameters, returnType, ?invokeCode, ?isStatic)

Parameters:
Returns: ProvidedMethod

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

methodName : string
parameters : ProvidedParameter list
returnType : Type
?invokeCode : Expr list -> Expr
?isStatic : bool
Returns: ProvidedMethod

Instance members

Instance member Description

this.AddCustomAttribute(arg1)

Full Usage: this.AddCustomAttribute(arg1)

Parameters:

Add a custom attribute to the provided method definition.

arg0 : CustomAttributeData

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 type definition.

line : int
column : int
filePath : string

this.AddMethodAttrs(attributes)

Full Usage: this.AddMethodAttrs(attributes)

Parameters:

attributes : MethodAttributes

this.AddObsoleteAttribute(message, ?isError)

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

Parameters:
    message : string
    ?isError : bool

Add XML documentation information to this provided method

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 computation of the documentation is delayed until necessary 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.DefineStaticParameters(parameters, instantiationFunction)

Full Usage: this.DefineStaticParameters(parameters, instantiationFunction)

Parameters:

Define the static parameters available on a statically parameterized method

parameters : ProvidedStaticParameter list
instantiationFunction : string -> obj[] -> ProvidedMethod

this.SetMethodAttrs(attributes)

Full Usage: this.SetMethodAttrs(attributes)

Parameters:

Set the method attributes of the method. By default these are simple 'MethodAttributes.Public'

attributes : MethodAttributes