語言

ReplicationServer.IsPublisher 屬性

定義

判斷目前連接的 Microsoft SQL Server 實例是否為 Publisher。

public:
 property bool IsPublisher { bool get(); };
public bool IsPublisher { get; }
member this.IsPublisher : bool
Public ReadOnly Property IsPublisher As Boolean

屬性值

一個Boolean用來指定目前連接的 SQL Server 實例是否為 Publisher 的值。

true,則 SQL Server 實例為 Publisher。

false,則 SQL Server 實例並非 Publisher。

備註

IsPublisher該屬性可由公開固定資料庫角色的成員檢索。

IsPublisher 性質等同於 sp_get_distributor (Transact-SQL) 儲存程序。

適用於