MethodInfo Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides information about a specified method.
public ref class MethodInfo : Microsoft::Dynamics::Ax::Xpp::XppObjectBase
[Microsoft.Dynamics.Ax.Xpp.KernelClass]
public class MethodInfo : Microsoft.Dynamics.Ax.Xpp.XppObjectBase
[<Microsoft.Dynamics.Ax.Xpp.KernelClass>]
type MethodInfo = class
inherit XppObjectBase
Public Class MethodInfo
Inherits XppObjectBase
- Inheritance
- Derived
- Attributes
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
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;
}
}
Constructors
MethodInfo() | |
MethodInfo(Int32, Int32, String) | |
MethodInfo(IntPtr) |
Fields
implementationOnBase | |
kernelClass | (Inherited from XppObjectBase) |
metaClass | |
metaMethod |
Properties
AxClassId | |
MetaMethod | |
ParentId | |
ParentName | |
ParentUtilType |
Methods
__shouldCallNew(Type) | (Inherited from XppObjectBase) |
Accessspecifier() |
Specifies whether the method is public, protected, or private. |
addXppProxyReference(Type, Object) | (Inherited from XppObjectBase) |
Call(String, Object[], Type[], Object[]) | (Inherited from XppObjectBase) |
cancelTimeOut(Int32) | (Inherited from XppObjectBase) |
Compiledok() |
Specifies whether the method has compiled. |
createKernelClass(Object[], Type[], Object[]) | (Inherited from XppObjectBase) |
Displaytableid() | |
Displaytype() |
Specifies the display function type of a method. |
equal(XppObjectBase) | (Inherited from XppObjectBase) |
finalize() | (Inherited from XppObjectBase) |
Getallattributes() |
Gets the full set of attributes for the method. |
Getattribute(String) |
Gets the first matching attribute from the class header metadata, creates an instance of the Object class that represents it, and returns it. |
Getattributes(String) | |
GetIntPtr() | (Inherited from XppObjectBase) |
GetKernelInstanceUniqueId() | (Inherited from XppObjectBase) |
getTimeOutTimerHandle() | (Inherited from XppObjectBase) |
getXppProxyReference(Type) | (Inherited from XppObjectBase) |
handle() | |
InitializeManagedObject(Int32, Int32, String) | |
Isabstract() |
Indicates whether the method is abstract. |
IsManagedValid() | |
Isstatic() |
Specifies whether the method is static. |
kernelhandle() | |
KernelInstanceDisposed() | (Inherited from XppObjectBase) |
MakeReflectionCall(String, Object[]) | (Inherited from XppObjectBase) |
Name() |
Specifies the name of a method. |
newmethod() | (Inherited from XppObjectBase) |
newmethod(Int32, Int32, String) |
Creates a new instance of the MethodInfo class. |
Noparms() |
Specifies the number of parameters in a method. |
notify() | (Inherited from XppObjectBase) |
notifyAll() | (Inherited from XppObjectBase) |
Novars() |
Specifies the number of variables in a method. |
objectOnServer() |
Obsolete.
(Inherited from XppObjectBase)
|
Parentid() |
Specifies the table ID for a table method or the class ID for a class method. |
Propertyhelp() |
Specifies the Help text that a method sets or returns for a control. |
Propertymethod() |
Specifies whether a method is a property method. |
Returnid() |
Specifies the ID for certain return data types, such as extended data types and classes, for a method that returns a value. |
Returntype() |
Specifies a method return type. |
Runmode() |
Specifies where a method is executed. |
Setmethod(XppObjectBase) |
Specifies the application object type of a node in the Application Object Tree (AOT). |
setTimeOut(String, Int32, Boolean) |
Obsolete.
(Inherited from XppObjectBase)
|
setTimeOut(String, Int32) |
Obsolete.
(Inherited from XppObjectBase)
|
usageCount() | (Inherited from XppObjectBase) |
Varid(Int32) |
Specifies the ID for certain variable data types, such as extended data types and enums, for a method that contains variables. |
Varidold(Int32) | |
Vartype(Int32) |
Specifies a variable data type by using values from the Types enumeration. |
VerifyKernelClass() | (Inherited from XppObjectBase) |
wait() | (Inherited from XppObjectBase) |
Xml() | (Inherited from XppObjectBase) |
Xml(Int32) | (Inherited from XppObjectBase) |