Propriété SnapshotAgentExists
Gets if the SQL Server Agent job exists to generate the initial snapshot for this publication.
Espace de noms : Microsoft.SqlServer.Replication
Assembly : Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)
Syntaxe
'Déclaration
Public ReadOnly Property SnapshotAgentExists As Boolean
Get
'Utilisation
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
Valeur de propriété
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. |
Notes
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.