IManagementDatabase.RunQdvMacro Method

Runs a macro in the management DB.
Sub RunQdvMacro( _ 
ByVal macroName As String, _ 
ByRef executionError As MacroExecutionError, _ 
ByVal context As IManagementDbCallingContext
)
This language is not supported or no code example is available.
void RunQdvMacro( 
string macroName
ref MacroExecutionError executionError
IManagementDbCallingContext context 
)
This language is not supported or no code example is available.

Parameters

macroName
string

The name of the macro to execute, not its ID.

executionError
MacroExecutionError

An error structure used to return the error produced by the macro execution.

context
IManagementDbCallingContext

The context passed to the macro.

Remarks
 

The execution stops on the first error. This error is then returned in the executionError argument. Since the MacroExecutionError is a structure, you cannot test it for null reference (Nothing in Visual Basic), when the method finishes. Instead, test its MacroExecutionError.ErrorMessage property. When you call the method, set the MacroExecutionError.ErrorMessage property to null reference (Nothing in Visual Basic) and when the method finishes, test whether the value is null reference (Nothing in Visual Basic) or an empty string.

Version
 
Available since QDV 7.14.525.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition