PullSubscription.LastAgentJobHistoryInfo 方法

Returns information on the last Synchronization Agent job that was run.

命名空间:  Microsoft.SqlServer.Replication
程序集:  Microsoft.SqlServer.Rmo(在 Microsoft.SqlServer.Rmo.dll 中)

语法

声明
Public Function LastAgentJobHistoryInfo As AgentJobHistoryInfo
用法
Dim instance As PullSubscription 
Dim returnValue As AgentJobHistoryInfo 

returnValue = instance.LastAgentJobHistoryInfo()
public AgentJobHistoryInfo LastAgentJobHistoryInfo()
public:
AgentJobHistoryInfo^ LastAgentJobHistoryInfo()
member LastAgentJobHistoryInfo : unit -> AgentJobHistoryInfo
public function LastAgentJobHistoryInfo() : AgentJobHistoryInfo

返回值

类型:Microsoft.SqlServer.Replication.AgentJobHistoryInfo
An AgentJobHistoryInfo object.

注释

The LastAgentJobHistoryInfo method can only be called by members of the sysadmin fixed server role at the Subscriber or by the user who created the subscription.

请参阅

参考

PullSubscription 类

Microsoft.SqlServer.Replication 命名空间