语言

StatusEventArgs 类

定义

表示事件发生时 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对象。

构造函数

名称 说明
StatusEventArgs()

创建类的新实例 StatusEventArgs

StatusEventArgs(String, Byte, MessageStatus)

创建一个新的类实例 StatusEventArgs ,包含提供的复制代理状态信息。

属性

名称 说明
Message

复制代理返回的状态消息。

MessageStatus

复制代理当前的运行状态。

PercentCompleted

预计完成的整体同步时间。

适用于