DownloadProgressChangedEventArgs Constructor
Although this API supports the Extension Manager infrastructure, we recommend that you do not use it because it is subject to change.
Namespace: Microsoft.VisualStudio.ExtensionManager
Assembly: Microsoft.VisualStudio.ExtensionManager (in Microsoft.VisualStudio.ExtensionManager.dll)
Syntax
声明
Public Sub New ( _
bytesReceived As Long, _
totalBytesToReceive As Long, _
progressPercentage As Integer, _
userState As Object _
)
public DownloadProgressChangedEventArgs(
long bytesReceived,
long totalBytesToReceive,
int progressPercentage,
Object userState
)
public:
DownloadProgressChangedEventArgs(
long long bytesReceived,
long long totalBytesToReceive,
int progressPercentage,
Object^ userState
)
new :
bytesReceived:int64 *
totalBytesToReceive:int64 *
progressPercentage:int *
userState:Object -> DownloadProgressChangedEventArgs
public function DownloadProgressChangedEventArgs(
bytesReceived : long,
totalBytesToReceive : long,
progressPercentage : int,
userState : Object
)
Parameters
- bytesReceived
Type: System.Int64
The number of bytes received before the event was fired.
- totalBytesToReceive
Type: System.Int64
The total number of bytes to receive.
- progressPercentage
Type: System.Int32
The percentage of bytes received.
- userState
Type: System.Object
An object that contains user state information.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.