CallStaticClassMethod Method (String, String, Object)

The CallStaticClassMethod method calls the specified static member method of the specified Axapta class using the specified parameters.

Namespace:  Microsoft.Dynamics.BusinessConnectorNet
Assembly:  Microsoft.Dynamics.BusinessConnectorNet (in Microsoft.Dynamics.BusinessConnectorNet.dll)

Syntax

'Declaration
Public Function CallStaticClassMethod ( _
    className As String, _
    methodName As String, _
    param1 As Object _
) As Object
'Usage
Dim instance As Axapta
Dim className As String
Dim methodName As String
Dim param1 As Object
Dim returnValue As Object

returnValue = instance.CallStaticClassMethod(className, _
    methodName, param1)
public Object CallStaticClassMethod(
    string className,
    string methodName,
    Object param1
)
public:
Object^ CallStaticClassMethod(
    String^ className, 
    String^ methodName, 
    Object^ param1
)

Parameters

Return Value

Type: System.Object
The return value is the object returned by the called static method. For information about the returned object types, see CallStaticClassMethod.

Exceptions

Exception Condition
AxaptaException

An unexpected error has occurred with Axapta.

BusinessConnectorException

An unexpected error has occurred with the Business Connector.

MethodUnknownException

methodName is an unknown Axapta method.

NoSecurityKeyException

The requested operation cannot be performed because the required security key does not exist.

NotLoggedOnException

The requested operation cannot be performed because the user is not logged on to Axapta.

UnknownXPPClassException

className is an unknown Axapta class.

ArgumentException

An argument passed to the method is invalid.

ArgumentNullException

A null reference was passed to a method that does not accept it as a valid argument.

NotSupportedException

The called method returned an object whose data type is not supported. For information about the supported data types for returned objects, see CallStaticClassMethod.

Remarks

Only static member methods on classes can be called.

See Also

Reference

Axapta Class

CallStaticClassMethod Overload

Microsoft.Dynamics.BusinessConnectorNet Namespace