CallStaticClassMethod Method (String, String, Object, Object, Object)
The CallStaticClassMethod method calls the specified static member method of the specified Axapta class using three 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, _
param2 As Object, _
param3 As Object _
) As Object
'Usage
Dim instance As Axapta
Dim className As String
Dim methodName As String
Dim param1 As Object
Dim param2 As Object
Dim param3 As Object
Dim returnValue As Object
returnValue = instance.CallStaticClassMethod(className, _
methodName, param1, param2, param3)
public Object CallStaticClassMethod(
string className,
string methodName,
Object param1,
Object param2,
Object param3
)
public:
Object^ CallStaticClassMethod(
String^ className,
String^ methodName,
Object^ param1,
Object^ param2,
Object^ param3
)
Parameters
- className
Type: System.String
- methodName
Type: System.String
- param1
Type: System.Object
- param2
Type: System.Object
- param3
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.