مشاركة عبر


Publication.SnapshotAgentExists Property

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

Namespace:  Microsoft.SqlServer.Replication
Assembly:  Microsoft.SqlServer.Rmo (in Microsoft.SqlServer.Rmo.dll)

Syntax

'Declaration
Public ReadOnly Property SnapshotAgentExists As Boolean 
    Get
'Usage
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

Property Value

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

Exceptions

Exception Condition
ApplicationException

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

See Also

Reference

Publication Class

Microsoft.SqlServer.Replication Namespace