Partilhar via


Método PullSubscription.LastAgentJobHistoryInfo

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

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (em Microsoft.SqlServer.Rmo.dll)

Sintaxe

'Declaração
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 de retorno

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

Comentários

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.

Consulte também

Referência

PullSubscription Classe

Namespace Microsoft.SqlServer.Replication