共用方式為


TransPublication.PostTracerToken 方法

Posts a tracer token into the Publisher log to begin the process of determining latency.

命名空間:  Microsoft.SqlServer.Replication
組件:  Microsoft.SqlServer.Rmo (在 Microsoft.SqlServer.Rmo.dll 中)

語法

'宣告
Public Function PostTracerToken As Integer
'用途
Dim instance As TransPublication 
Dim returnValue As Integer 

returnValue = instance.PostTracerToken()
public int PostTracerToken()
public:
int PostTracerToken()
member PostTracerToken : unit -> int
public function PostTracerToken() : int

傳回值

型別:System.Int32

備註

The PostTracerToken method can only be called by members of the sysadmin fixed server role at the Publisher or by members of the db_owner fixed database role on the publication database.

Calling PostTracerToken is equivalent to executing sp_posttracertoken.

請參閱

參考

TransPublication 類別

Microsoft.SqlServer.Replication 命名空間

其他資源

測量異動複寫的延遲並驗證其連接 (RMO 程式設計)

針對異動複寫測量延遲及驗證連接