Publication.SnapshotAgentExists 属性

Gets if the SQL Server Agent job exists to generate the initial snapshot for this publication.

命名空间:  Microsoft.SqlServer.Replication
程序集:  Microsoft.SqlServer.Rmo(在 Microsoft.SqlServer.Rmo.dll 中)

语法

声明
Public ReadOnly Property SnapshotAgentExists As Boolean 
    Get
用法
Dim instance As Publication 
Dim value As Boolean 

value = instance.SnapshotAgentExists
public bool SnapshotAgentExists { get; }
public:
property bool SnapshotAgentExists {
    bool get ();
}
member SnapshotAgentExists : bool
function get SnapshotAgentExists () : boolean

属性值

类型:System.Boolean
A Boolean value that indicates if the Snapshot Agent job exists for the publication.

异常

异常 条件
ApplicationException

If the publication does not exist on the server, or the server is not running SQL Server 2005 or later.

请参阅

参考

Publication 类

Microsoft.SqlServer.Replication 命名空间