CallStaticClassMethod Method
The CallStaticClassMethod method calls a static member method of an Axapta class.
Overload List
Name | Description | |
---|---|---|
CallStaticClassMethod(String, String) | The CallStaticClassMethod method calls the specified static member method of the specified Axapta class. | |
CallStaticClassMethod(String, String, Object) | The CallStaticClassMethod method calls the specified static member method of the specified Axapta class using the specified parameters. | |
CallStaticClassMethod(String, String, Object[]) | The CallStaticClassMethod method calls the specified static member method of the specified Axapta class using the specified parameter list. | |
CallStaticClassMethod(String, String, Object, Object) | The CallStaticClassMethod method calls the specified static member method of the specified Axapta class by using two specified parameters. | |
CallStaticClassMethod(String, String, Object, Object, Object) | The CallStaticClassMethod method calls the specified static member method of the specified Axapta class using three specified parameters. |
Top
Remarks
Only static member methods on classes can be called.
Any parameter passed to the called method must be one of the following data types. The variant type is shown for informational purposes.
Managed Type |
Variant Type |
---|---|
VT_AX_BUFFER |
|
VT_AX_CONTAINER |
|
VT_AX_CLASS |
|
VT_AX_RECORD |
|
VT_VARIANT |
|
VT_BOOL |
|
VT_UI1 |
|
VT_DATE |
|
VT_DECIMAL |
|
VT_R8 |
|
VT_I2 |
|
VT_I4 |
|
VT_CY |
|
VT_DISPATCH |
|
VT_ERROR |
|
VT_UNKNOWN |
|
VT_I1 |
|
VT_R4 |
|
VT_BSTR |
|
VT_UI2 |
|
VT_UI4 |
Note
If the called method specifies a parameter that has a type that is not listed in the table, a ArgumentException exception is raised.
Array can consist of any of the types previously listed except for AxaptaBuffer, AxaptaContainer, AxaptaObject, and AxaptaRecord.
Use the VariantWrapper class to handle cases where this method requires a ComVariant parameter; the ComVariant type is a wrapper around a VARIANT object. The VariantWrapper class wraps all of the previous types except for AxaptaBuffer, AxaptaContainer, AxaptaObject, and AxaptaRecord.
When the called method returns an object, the object will be one of the following managed data types. The variant type is shown for informational purposes.
Managed Type |
Variant Type |
---|---|
VT_AX_CLASS |
|
VT_AX_RECORD |
|
VT_AX_CONTAINER |
|
VT_ARRAY |
|
VT_BOOL |
|
VT_DATE |
|
VT_R8 |
|
VT_I4 |
|
VT_BSTR |
Note
If the called method returns a type that is not in the previous table, a NotSupportedException exception is raised.