Description
Executes multiple CONNECT actions. The
behavior of the method when encountering an exception varies
depending on the setting of the Action parameter. See the help for
AgEExecMultiCmdResultAction.
Syntax
[Visual Basic .NET] |
Public Function ExecuteMultipleCommands( _
ByRef ConnectCommands As System.Array, _
ByVal Action As AgEExecMultiCmdResultAction _
) As IAgExecMultiCmdResult
|
[C#] |
public IAgExecMultiCmdResult ExecuteMultipleCommands(
ref System.Array ConnectCommands,
AgEExecMultiCmdResultAction Action
);
|
[Managed C++] |
public: IAgExecMultiCmdResult^ ExecuteMultipleCommands(
System::Array ^^ ConnectCommands,
AgEExecMultiCmdResultAction Action
);
|
[Java] |
public IAgExecMultiCmdResult executeMultipleCommands(
Object[] ConnectCommands,
AgEExecMultiCmdResultAction Action
);
|
[Unmanaged C++] |
public: HRESULT ExecuteMultipleCommands(
SAFEARRAY ** ConnectCommands,
AgEExecMultiCmdResultAction Action,
IAgExecMultiCmdResult ** ReturnValue
);
|
Parameters
Example
Execute multiple
Connect commands
[C#] |
Copy Code
|
Array connectCommands = new object[]
{
"New / */Satellite MySatellite",
"Graphics */Satellite/MySatellite SetColor red"
};
IAgExecMultiCmdResult result = root.ExecuteMultipleCommands(ref connectCommands, AgEExecMultiCmdResultAction.eExceptionOnError);
|
|
Execute multiple
Connect commands
[Visual Basic .NET] |
Copy Code
|
#If Not CSToJava Then
#Else
#End If
Dim connectCommands As Array =
New Object() {"New / */Satellite
MySatellite", "Graphics
*/Satellite/MySatellite SetColor red"}
#If Not CSToJava Then
Dim result As IAgExecMultiCmdResult =
root.ExecuteMultipleCommands(connectCommands,
AgEExecMultiCmdResultAction.eExceptionOnError)
#Else
#End If
|
|
See Also