Share via


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.

Remarks

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.