Share via


SyncStagedProgressEventArgs Constructor

Initializes a new instance of the SyncStagedProgressEventArgs class that contains the specified position of the provider associated with this event, the current stage of the session, the completed work value, and the total work value.

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

Syntax

'Declaration
Public Sub New ( _
    providerPosition As SyncProviderPosition, _
    sessionStage As SessionProgressStage, _
    completedWork As UInteger, _
    totalWork As UInteger _
)
'Usage
Dim providerPosition As SyncProviderPosition
Dim sessionStage As SessionProgressStage
Dim completedWork As UInteger
Dim totalWork As UInteger

Dim instance As New SyncStagedProgressEventArgs(providerPosition, _
    sessionStage, completedWork, totalWork)
public SyncStagedProgressEventArgs(
    SyncProviderPosition providerPosition,
    SessionProgressStage sessionStage,
    uint completedWork,
    uint totalWork
)
public:
SyncStagedProgressEventArgs(
    SyncProviderPosition providerPosition, 
    SessionProgressStage sessionStage, 
    unsigned int completedWork, 
    unsigned int totalWork
)
new : 
        providerPosition:SyncProviderPosition * 
        sessionStage:SessionProgressStage * 
        completedWork:uint32 * 
        totalWork:uint32 -> SyncStagedProgressEventArgs
public function SyncStagedProgressEventArgs(
    providerPosition : SyncProviderPosition, 
    sessionStage : SessionProgressStage, 
    completedWork : uint, 
    totalWork : uint
)

Parameters

  • completedWork
    Type: System.UInt32
    The amount of work that is currently completed in the session. This value is interpreted as being a part of totalWork.

See Also

Reference

SyncStagedProgressEventArgs Class

Microsoft.Synchronization Namespace

Other Resources

Reporting Synchronization Progress