IEstimate.RunQdvRequest (String, Int32, Int32, Int32, ref MacroExecutionError) Method
Sub RunQdvRequest( _
ByVal requestName As String, _
ByVal wbsScope As Integer, _
ByVal includeDbOfEstimate As Integer, _
ByVal includeOverheadMinute As Integer, _
ByRef executionError As MacroExecutionError _
)
This language is not supported or no code example is available.
Parameters
- requestName
- string
The request name (not a request ID).
- wbsScope
- int
The WBS scope of the request execution. 1 means '001', 0 means no task from the WBS.
- includeDbOfEstimate
- int
Indicates whether to include also database of estimate into request execution scope. 1 means yes, 0 means no.
- includeOverheadMinute
- int
Indicates whether to include also overhead minute into request execution scope. 1 means yes, 0 means no.
- executionError
- MacroExecutionError
Returns the errors produced by the request execution.
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.