Share via


MethodInfo Class

Provides information about a specified method.

Syntax

class MethodInfo extends Object

Run On

Called

Methods

  Method Description
Gg942043.pubmethod(en-us,AX.60).gif accessSpecifier Specifies whether the method is public, protected, or private.
Gg942043.pubmethod(en-us,AX.60).gif cancelTimeOut Cancels a previous method call to the setTimeOut method. (Inherited from Object.)
Gg942043.pubmethod(en-us,AX.60).gif compiledOk Specifies whether the method has compiled.
Gg942043.pubmethod(en-us,AX.60).gif displayTableId
Gg942043.pubmethod(en-us,AX.60).gif displayType Specifies the display function type of a method.
Gg942043.pubmethod(en-us,AX.60).gif equal Determines whether the specified object is equal to the current one. (Inherited from Object.)
Gg942043.pubmethod(en-us,AX.60).gif getAllAttributes Gets the full set of attributes for the method.
Gg942043.pubmethod(en-us,AX.60).gif getAttribute Gets the first matching attribute from the class header metadata, creates an instance of the Object class that represents it, and returns it.
Gg942043.pubmethod(en-us,AX.60).gif getAttributes
Gg942043.pubmethod(en-us,AX.60).gif getTimeOutTimerHandle Returns the timer handle for the object. (Inherited from Object.)
Gg942043.pubmethod(en-us,AX.60).gif handle Retrieves the handle of the class of the object. (Inherited from Object.)
Gg942043.pubmethod(en-us,AX.60).gif isAbstract Indicates whether the method is abstract.
Gg942043.pubmethod(en-us,AX.60).gif isStatic Specifies whether the method is static.
Gg942043.pubmethod(en-us,AX.60).gif name Specifies the name of a method.
Gg942043.pubmethod(en-us,AX.60).gif new Creates a new instance of the MethodInfo class. (Overrides the new Method.)
Gg942043.pubmethod(en-us,AX.60).gif noParms Specifies the number of parameters in a method.
Gg942043.pubmethod(en-us,AX.60).gif notify Releases the hold on an object that has called the wait method on this object. (Inherited from Object.)
Gg942043.pubmethod(en-us,AX.60).gif notifyAll Releases a lock on the object that was issued by the wait method on this object. (Inherited from Object.)
Gg942043.pubmethod(en-us,AX.60).gif noVars Specifies the number of variables in a method.
Gg942043.pubmethod(en-us,AX.60).gif objectOnServer Determines whether the object is on a server. (Inherited from Object.)
Gg942043.pubmethod(en-us,AX.60).gif owner Returns the instance that owns the object. (Inherited from Object.)
Gg942043.pubmethod(en-us,AX.60).gif parentId Specifies the table ID for a table method or the class ID for a class method.
Gg942043.pubmethod(en-us,AX.60).gif propertyHelp Specifies the Help text that a method sets or returns for a control.
Gg942043.pubmethod(en-us,AX.60).gif PropertyMethod Specifies whether a method is a property method.
Gg942043.pubmethod(en-us,AX.60).gif returnId Specifies the ID for certain return data types, such as extended data types and classes, for a method that returns a value.
Gg942043.pubmethod(en-us,AX.60).gif returnType Specifies a method return type.
Gg942043.pubmethod(en-us,AX.60).gif runMode Specifies where a method is executed.
Gg942043.pubmethod(en-us,AX.60).gif setMethod Specifies the application object type of a node in the Application Object Tree (AOT) by using an instance of the .
Gg942043.pubmethod(en-us,AX.60).gif setTimeOut Sets up the scheduled execution of a specified method. (Inherited from Object.)
Gg942043.pubmethod(en-us,AX.60).gif toString Returns a string that represents the current object. (Inherited from Object.)
Gg942043.pubmethod(en-us,AX.60).gif usageCount Returns the current number of references, that is, the value of the reference counter, that the object has. (Inherited from Object.)
Gg942043.pubmethod(en-us,AX.60).gif varId Specifies the ID for certain variable data types, such as extended data types and enums, for a method that contains variables.
Gg942043.pubmethod(en-us,AX.60).gif varIdOld
Gg942043.pubmethod(en-us,AX.60).gif varType Specifies a variable data type by using values from the Types enumeration.
Gg942043.pubmethod(en-us,AX.60).gif wait Pauses a process. (Inherited from Object.)
Gg942043.pubmethod(en-us,AX.60).gif xml Returns an XML string that represents the current object. (Inherited from Object.)

Top

Remarks

Assign a table method to MethodInfo by using the SysDictTable class. Assign a class method by using the SysDictClass class.

The following classes extend MethodInfo:

  • SysMethodInfo

  • DictMethod

Examples

The following example uses the SysDictClass::ObjectMethodObject method to assign a method of a FormBuildDataSource Class object to an instance of the MethodInfo class. An integer value specifies the method.

The MethodInfo.name Method method returns the method name.

void getMethodInfo() 
{ 
    MethodInfo methodInfo; 
    SysDictClass sysDictClass; 
    str name; 
 
    try 
    { 
        sysDictClass = new SysDictClass(classnum(FormBuildDataSource)); 
        methodInfo = sysDictClass.objectMethodObject(1); 
        if(!methodInfo) 
        { 
            throw exception::Error; 
        } 
        name = methodInfo.name(); 
        print name; 
        pause; 
     } 
     catch (exception::Error) 
     { 
        print "The specified method does not exist"; 
        pause; 
     } 
}

Inheritance Hierarchy

Object Class
  MethodInfo Class
    DictMethod Class

See Also

Using the display Method Modifier