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. |
備註
The SnapshotAgentExists property is available with SQL Server 2005 and later.
This namespace, class, or member is supported only in version 2.0 of the .NET Framework.