Свойство CreateSnapshotAgentByDefault
Gets or sets if the Snapshot Agent job is added automatically when the publication is created.
Пространство имен: Microsoft.SqlServer.Replication
Сборка: Microsoft.SqlServer.Rmo (в Microsoft.SqlServer.Rmo.dll)
Синтаксис
'Декларация
Public Property CreateSnapshotAgentByDefault As Boolean
Get
Set
'Применение
Dim instance As Publication
Dim value As Boolean
value = instance.CreateSnapshotAgentByDefault
instance.CreateSnapshotAgentByDefault = value
public bool CreateSnapshotAgentByDefault { get; set; }
public:
property bool CreateSnapshotAgentByDefault {
bool get ();
void set (bool value);
}
member CreateSnapshotAgentByDefault : bool with get, set
function get CreateSnapshotAgentByDefault () : boolean
function set CreateSnapshotAgentByDefault (value : boolean)
Значение свойства
Тип System. . :: . .Boolean
A Boolean value. If true, the default, a Snapshot Agent job is created. If false, a Snapshot Agent job is not created, and the snapshot must be generated programmatically.
Замечания
The default value of CreateSnapshotAgentByDefault is true. If you specify a value of false for CreateSnapshotAgentByDefault, you must manually run the Snapshot Agent to generate the initial snapshot for the publication. For more information, see Как создать исходный моментальный снимок (программирование объектов RMO).
The CreateSnapshotAgentByDefault can be set by any user. The property can only be set before a publication is created.
This namespace, class, or member is supported only in version 2.0 of the .NET Framework.
См. также