共用方式為


Subscription.AgentJobId Property

Definition

Gets the ID of the agent job used to synchronize the subscription.

public:
 property System::String ^ AgentJobId { System::String ^ get(); };
public string AgentJobId { get; }
member this.AgentJobId : string
Public ReadOnly Property AgentJobId As String

Property Value

The ID of the agent.

Remarks

The <xref:Microsoft.SqlServer.Replication.Subscription.AgentJobID%2A> property is a read-only property.

The <xref:Microsoft.SqlServer.Replication.Subscription.AgentJobID%2A> property can only be retrieved by members of the sysadmin fixed server role at the Publisher, by members of the db_owner fixed database role on the publication database, or by the user that created the subscription.

Retrieving the <xref:Microsoft.SqlServer.Replication.Subscription.AgentJobID%2A> property is equivalent to executing sp_helpsubscription or sp_helpmergesubscription.

Applies to