CallStaticClassMethod Method (String, String, Object )
The CallStaticClassMethod method calls the specified static member method of the specified Axapta class using the specified parameter list.
Namespace: Microsoft.Dynamics.BusinessConnectorNet
Assembly: Microsoft.Dynamics.BusinessConnectorNet (in Microsoft.Dynamics.BusinessConnectorNet.dll)
Syntax
'Declaration
Public Function CallStaticClassMethod ( _
className As String, _
methodName As String, _
ParamArray paramList As Object() _
) As Object
'Usage
Dim instance As Axapta
Dim className As String
Dim methodName As String
Dim paramList As Object()
Dim returnValue As Object
returnValue = instance.CallStaticClassMethod(className, _
methodName, paramList)
public Object CallStaticClassMethod(
string className,
string methodName,
params Object[] paramList
)
public:
Object^ CallStaticClassMethod(
String^ className,
String^ methodName,
... array<Object^>^ paramList
)
Parameters
- className
Type: System.String
- methodName
Type: System.String
- paramList
Type: System.Object[]
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.