Compartir a través de


PullSubscription.LastAgentJobHistoryInfo Método

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

Espacio de nombres:  Microsoft.SqlServer.Replication
Ensamblado:  Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)

Sintaxis

'Declaración
Public Function LastAgentJobHistoryInfo As AgentJobHistoryInfo
'Uso
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

Valor devuelto

Tipo: Microsoft.SqlServer.Replication.AgentJobHistoryInfo
An AgentJobHistoryInfo object.

Comentarios

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.

Vea también

Referencia

PullSubscription Clase

Espacio de nombres Microsoft.SqlServer.Replication