StatusEventArgs 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表事件發生時 Status ,複製代理回傳的狀態資訊。
public ref class StatusEventArgs : EventArgs, Microsoft::SqlServer::Replication::IStatusEventData
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Runtime.InteropServices.Guid("71E7B237-A9E6-4315-90E7-7BF2A7EEC838")]
public class StatusEventArgs : EventArgs, Microsoft.SqlServer.Replication.IStatusEventData
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)>]
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Runtime.InteropServices.Guid("71E7B237-A9E6-4315-90E7-7BF2A7EEC838")>]
type StatusEventArgs = class
inherit EventArgs
interface IStatusEventData
Public Class StatusEventArgs
Inherits EventArgs
Implements IStatusEventData
- 繼承
-
StatusEventArgs
- 屬性
- 實作
備註
該事件在 Status 同步期間從複製代理回傳狀態訊息、狀態碼及完成百分比資訊。 當Status事件發生於代理執行時,會AgentCore.StatusEventHandler回傳一個StatusEventArgs物件。
建構函式
| 名稱 | Description |
|---|---|
| StatusEventArgs() |
建立 StatusEventArgs 類別的新實例。 |
| StatusEventArgs(String, Byte, MessageStatus) |
建立一個新的類別實例 StatusEventArgs ,並提供複製代理狀態資訊。 |
屬性
| 名稱 | Description |
|---|---|
| Message |
複製代理回傳的狀態訊息。 |
| MessageStatus |
複製代理目前的運作狀態。 |
| PercentCompleted |
整體同步完成的估計數量。 |