Share via


BlobTransferProgressChangedEventArgs Constructor

Initializes a new instance of the BlobTransferProgressChangedEventArgs class.

Namespace:  Microsoft.WindowsAzure.MediaServices.Client
Assembly:  Microsoft.WindowsAzure.MediaServices.Client (in Microsoft.WindowsAzure.MediaServices.Client.dll)

Syntax

'Declaration
Public Sub New ( _
    bytesTransferred As Long, _
    lastBlockBytesTransferred As Long, _
    totalBytesToTransfer As Long, _
    progressPercentage As Integer, _
    speed As Double, _
    uri As Uri, _
    localfile As String, _
    userState As Object _
)
'Usage
Dim bytesTransferred As Long 
Dim lastBlockBytesTransferred As Long 
Dim totalBytesToTransfer As Long 
Dim progressPercentage As Integer 
Dim speed As Double 
Dim uri As Uri 
Dim localfile As String 
Dim userState As Object 

Dim instance As New BlobTransferProgressChangedEventArgs(bytesTransferred, _
    lastBlockBytesTransferred, totalBytesToTransfer, _
    progressPercentage, speed, uri, localfile, _
    userState)
public BlobTransferProgressChangedEventArgs(
    long bytesTransferred,
    long lastBlockBytesTransferred,
    long totalBytesToTransfer,
    int progressPercentage,
    double speed,
    Uri uri,
    string localfile,
    Object userState
)
public:
BlobTransferProgressChangedEventArgs(
    long long bytesTransferred, 
    long long lastBlockBytesTransferred, 
    long long totalBytesToTransfer, 
    int progressPercentage, 
    double speed, 
    Uri^ uri, 
    String^ localfile, 
    Object^ userState
)
new : 
        bytesTransferred:int64 * 
        lastBlockBytesTransferred:int64 * 
        totalBytesToTransfer:int64 * 
        progressPercentage:int * 
        speed:float * 
        uri:Uri * 
        localfile:string * 
        userState:Object -> BlobTransferProgressChangedEventArgs
public function BlobTransferProgressChangedEventArgs(
    bytesTransferred : long, 
    lastBlockBytesTransferred : long, 
    totalBytesToTransfer : long, 
    progressPercentage : int, 
    speed : double, 
    uri : Uri, 
    localfile : String, 
    userState : Object
)

Parameters

  • bytesTransferred
    Type: System.Int64
    Number of bytes transferred so far.
  • lastBlockBytesTransferred
    Type: System.Int64
    Number of bytes transferred in the last block.
  • totalBytesToTransfer
    Type: System.Int64
    Total number of bytes to transfer.
  • progressPercentage
    Type: System.Int32
    Percentage of bytes that finished transfering.
  • speed
    Type: System.Double
    Average speed of transfer in bytes per second.
  • uri
    Type: System.Uri
    Uri of the blob location to transfer the data.
  • localfile
    Type: System.String
    Name of the file being transferred.
  • userState
    Type: System.Object
    User state information to be passed through.

See Also

Reference

BlobTransferProgressChangedEventArgs Class

Microsoft.WindowsAzure.MediaServices.Client Namespace