ProvidedMethod
Namespace: ProviderImplementation.ProvidedTypes
Constructors
| Constructor | Description |
new(...)
Signature: (methodName:string * parameters:ProvidedParameter list * returnType:Type * invokeCode:(Expr list -> Expr) * isStatic:bool option) -> ProvidedMethod
|
When making a cross-targeting type provider, use this method instead of the ProvidedMethod constructor from ProvidedTypes
CompiledName: .ctor
|
Instance members
| Instance member | Description |
AddCustomAttribute(arg1)
Signature: CustomAttributeData -> unit
|
Add a custom attribute to the provided method definition.
|
AddDefinitionLocation(...)
Signature: (line:int * column:int * filePath:string) -> unit
|
Add definition location information to the provided type definition.
|
AddMethodAttrs(attributes)
Signature: attributes:MethodAttributes -> unit
|
|
AddObsoleteAttribute(message, isError)
Signature: (message:string * isError:bool option) -> unit
|
Add XML documentation information to this provided method
|
AddXmlDoc(xmlDoc)
Signature: xmlDoc:string -> unit
|
Add XML documentation information to this provided constructor
|
AddXmlDocComputed(xmlDocFunction)
Signature: (xmlDocFunction:(unit -> string)) -> unit
|
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.
|
AddXmlDocDelayed(xmlDocFunction)
Signature: (xmlDocFunction:(unit -> string)) -> unit
|
Add XML documentation information to this provided constructor, where the computation of the documentation is delayed until necessary
|
DefineStaticParameters(...)
Signature: (parameters:ProvidedStaticParameter list * instantiationFunction:(string -> obj [] -> ProvidedMethod)) -> unit
|
Define the static parameters available on a statically parameterized method
|
SetMethodAttrs(attributes)
Signature: attributes:MethodAttributes -> unit
|
Set the method attributes of the method. By default these are simple 'MethodAttributes.Public'
|