---
title: "BaseViewer..::.invokeRemoteMethod Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_J_GraphicsMill_BaseViewer_invokeRemoteMethod.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# BaseViewer.invokeRemoteMethod Method 
 
Runs the specified remote method on the server. Read the [Remote Scripting Approach](https://www.graphicsmill.com/docs/gm5/AjaxControlsRemoteScripting.htm.md) topic for more details.
 
**Namespace:** [GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_J_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill.AjaxControls (in Aurigma.GraphicsMill.AjaxControls.dll)
 
## Syntax
  
```
function invokeRemoteMethod(name, args);
```
 
### Parameters
 
 - name
     - Type: Global.String
The name of the remote method which should be run on the server.

 - args
     - Type:  Global.Any []
The array of arguments. The first element of the array is passed into the first argument, the second element - into the second one, etc. Number of array items should be the same as a number of arguments.
 
### Return Value
The Boolean value which specifies whether the method was run successfully.
   
## See Also

### Reference

- [BaseViewer Class](https://www.graphicsmill.com/docs/gm5/T_J_GraphicsMill_BaseViewer.htm.md)
- [GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_J_GraphicsMill.htm.md)
