DataObject.DefineMethod Method | |
Defines a dynamic method.
Namespace:
XSharp.XPP
Assembly:
XSharp.XPP (in XSharp.XPP.dll) Version: 2.21
Syntax VIRTUAL METHOD DefineMethod(
cName AS STRING,
uAction AS USUAL
) AS Object
public virtual Object DefineMethod(
string cName,
Usual uAction
)
Request Example
View SourceParameters
- cName
- Type: String
The name of the method to be defined. - uAction
- Type: Usual
A Function name or codeblock that must be executed when the method is called.
Return Value
Type:
ObjectThis method returns the DataObject (self).
Remarks Dynamic methods in X# are called from the NoMethod method inside the DataObject class.
See Also