ReplicationServer.IsPublisher 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
判斷目前連接的 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) 儲存程序。