Qit


ProvidedMethod Type

Represents an erased provided method.

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

Full Usage: this.AddCustomAttribute

Parameters:

Add a custom attribute to the provided method definition.

arg0 : CustomAttributeData

this.AddDefinitionLocation

Full Usage: this.AddDefinitionLocation

Parameters:
    line : int
    column : int
    filePath : string

Add definition location information to the provided type definition.

line : int
column : int
filePath : string

this.AddMethodAttrs

Full Usage: this.AddMethodAttrs

Parameters:
attributes : MethodAttributes

this.AddObsoleteAttribute

Full Usage: this.AddObsoleteAttribute

Parameters:
    message : string
    ?isError : bool

Add XML documentation information to this provided method

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 computation of the documentation is delayed until necessary 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.DefineStaticParameters

Full Usage: this.DefineStaticParameters

Parameters:

Define the static parameters available on a statically parameterized method

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

this.SetMethodAttrs

Full Usage: this.SetMethodAttrs

Parameters:

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

attributes : MethodAttributes