DataTransferProgressEventArgs 建構函式
使用指定的傳輸識別碼、進度計數和相關例外狀況,針對指定的事件初始化 DataTransferProgressEventArgs 類別的新執行個體。
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
Public Sub New ( _
eventType As DataTransferProgressEventType, _
transferId As String, _
progressCount As Long, _
ex As Exception _
)
'用途
Dim eventType As DataTransferProgressEventType
Dim transferId As String
Dim progressCount As Long
Dim ex As Exception
Dim instance As New DataTransferProgressEventArgs(eventType, _
transferId, progressCount, ex)
public DataTransferProgressEventArgs(
DataTransferProgressEventType eventType,
string transferId,
long progressCount,
Exception ex
)
public:
DataTransferProgressEventArgs(
DataTransferProgressEventType eventType,
String^ transferId,
long long progressCount,
Exception^ ex
)
new :
eventType:DataTransferProgressEventType *
transferId:string *
progressCount:int64 *
ex:Exception -> DataTransferProgressEventArgs
public function DataTransferProgressEventArgs(
eventType : DataTransferProgressEventType,
transferId : String,
progressCount : long,
ex : Exception
)
參數
- eventType
型別:Microsoft.SqlServer.Management.Common.DataTransferProgressEventType
DataTransferProgressEventType 物件,指定與 DataTransferProgressEventArgs 物件相關聯的事件類型。
- transferId
型別:String
String 值,指定與 DataTransferProgressEventType 物件相關聯的傳輸識別碼值。
- progressCount
型別:Int64
Int64 值,以傳輸的項目數目指定傳輸進度。
- ex
型別:Exception
Exception 值,指定與 DataTransferProgressEventArgs 相關聯的例外狀況。
備註
預設建構函式會初始化任何欄位至其預設值。