DeploymentProgressChangedEventArgs Class

DeploymentProgressChangedEventArgs Class

 

Represents progress data reported in an asynchronous operation.

Namespace:   System.Deployment.Application
Assembly:  System.Deployment (in System.Deployment.dll)

System.Object
  System.EventArgs
    System.ComponentModel.ProgressChangedEventArgs
      System.Deployment.Application.DeploymentProgressChangedEventArgs

type DeploymentProgressChangedEventArgs = 
    class
        inherit ProgressChangedEventArgs
    end

NameDescription
System_CAPS_pubpropertyBytesCompleted

Gets the number of bytes already downloaded by this operation.

System_CAPS_pubpropertyBytesTotal

Gets the total number of bytes in the download operation.

System_CAPS_pubpropertyGroup

Gets the name of the file group being downloaded.

System_CAPS_pubpropertyProgressPercentage

Gets the asynchronous task progress percentage.(Inherited from ProgressChangedEventArgs.)

System_CAPS_pubpropertyState

Gets the action that the process is currently executing.

System_CAPS_pubpropertyUserState

Gets a unique user state.(Inherited from ProgressChangedEventArgs.)

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

This class contains properties that describe progress for the CheckForUpdateProgressChanged, DownloadFileGroupProgressChanged, and UpdateProgressChanged events. Not every property in this class applies to each event.

BytesCompleted and BytesTotal represent the total number of bytes downloaded to date and the total number of bytes in the download operation, respectively; they apply to all three events. Group names the file group corresponding to the current DownloadFileGroupProgressChanged event, and State reflects the current stage of the download operation.

The following code example downloads a file group named HelpFiles, and displays download progress in a status bar. This example requires that you deploy a Windows Forms application, and that your main form has a StatusStrip control, and a ToolStripStatusLabel control named downloadStatus.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft