IFsrmReportJob.WaitForCompletion Method (Int32)

 

Waits for the reports in the job to complete.

Namespace:   Microsoft.Storage
Assembly:  srmlib (in srmlib.dll)

Syntax

bool WaitForCompletion(
    int waitSeconds
)
bool WaitForCompletion(
    int waitSeconds
)
abstract WaitForCompletion : 
        waitSeconds:int -> bool
Function WaitForCompletion (
    waitSeconds As Integer
) As Boolean

Parameters

  • waitSeconds
    Type: System.Int32

    The number of seconds to wait for the reports to complete. The method returns when the period expires or the reports complete. To wait indefinitely, set the value to –1.

Return Value

Type: System.Boolean

Returns a Boolean: true if the reports completed; otherwise, false..

Remarks

To run the job, call the Run method.

After WaitForCompletion returns, access the LastError property to determine if the reports completed successfully.

See Also

IFsrmReportJob Interface
Microsoft.Storage Namespace

Return to top