MergeSubscriberMonitor.GetSessionsSummary 方法

定義

回傳 合併代理程式 會話的摘要資訊。

多載

名稱 Description
GetSessionsSummary(Int32)

回傳過去指定小時內發生的 合併代理程式 會話摘要資訊。

GetSessionsSummary()

回傳所有關於 合併代理程式 會話的摘要資訊。

備註

此命名空間、類別或成員僅支援於 Microsoft .NET 框架 2.0 版本。

GetSessionsSummary(Int32)

回傳過去指定小時內發生的 合併代理程式 會話摘要資訊。

public:
 cli::array <Microsoft::SqlServer::Replication::MergeSessionSummary ^> ^ GetSessionsSummary(int hours);
public Microsoft.SqlServer.Replication.MergeSessionSummary[] GetSessionsSummary(int hours);
member this.GetSessionsSummary : int -> Microsoft.SqlServer.Replication.MergeSessionSummary[]
Public Function GetSessionsSummary (hours As Integer) As MergeSessionSummary()

參數

hours
Int32

過去幾個小時需要回傳會話資訊。

傳回

MergeSessionSummary 物件的陣列。

例外狀況

當定義訂閱的某個屬性為 或未指定時,會發生這種情況。

備註

呼叫 GetSessionsSummary() 該方法而非 GetSessionsSummary(Int32) 返回所有可用會話,最多可回傳五個會話。

呼叫此GetSessionsSummary(Int32)方法等同於在訂閱者執行 sp_replmonitorhelpmergesession (Transact-SQL)。

GetSessionsSummary(Int32)此方法可由db_owner成員執行,或在連接至分發者時在分發資料庫中執行固定資料庫角色的 replmonitor;連接至訂閱者時則可在訂閱資料庫中執行。

此命名空間、類別或成員僅支援於 Microsoft .NET 框架 2.0 版本。

另請參閱

適用於

GetSessionsSummary()

回傳所有關於 合併代理程式 會話的摘要資訊。

public:
 cli::array <Microsoft::SqlServer::Replication::MergeSessionSummary ^> ^ GetSessionsSummary();
public Microsoft.SqlServer.Replication.MergeSessionSummary[] GetSessionsSummary();
member this.GetSessionsSummary : unit -> Microsoft.SqlServer.Replication.MergeSessionSummary[]
Public Function GetSessionsSummary () As MergeSessionSummary()

傳回

MergeSessionSummary 物件的陣列。

例外狀況

當定義訂閱的某個屬性為 或未指定時,會發生這種情況。

備註

此方法回 GetSessionsSummary()MergeSessionSummary 最多五個會話的物件。

呼叫此GetSessionsSummary方法等同於在訂閱者執行 sp_replmonitorhelpmergesession (Transact-SQL)。

GetSessionsSummary此方法可由db_owner成員執行,或在連接至分發者時在分發資料庫中執行固定資料庫角色的 replmonitor;連接至訂閱者時則可在訂閱資料庫中執行。

此命名空間、類別或成員僅支援於 Microsoft .NET 框架 2.0 版本。

另請參閱

適用於