语言

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) 存储过程。

适用于