다음을 통해 공유


Publication.CreateSnapshotAgentByDefault Property

Gets or sets if the Snapshot Agent job is added automatically when the publication is created.

네임스페이스: Microsoft.SqlServer.Replication
어셈블리: Microsoft.SqlServer.Rmo (in microsoft.sqlserver.rmo.dll)

구문

‘선언
Public Property CreateSnapshotAgentByDefault As Boolean
public bool CreateSnapshotAgentByDefault { get; set; }
public:
property bool CreateSnapshotAgentByDefault {
    bool get ();
    void set (bool value);
}
/** @property */
public boolean get_CreateSnapshotAgentByDefault ()

/** @property */
public void set_CreateSnapshotAgentByDefault (boolean value)
public function get CreateSnapshotAgentByDefault () : boolean

public function set CreateSnapshotAgentByDefault (value : 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 How to: Create the Initial Snapshot (RMO Programming).

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.

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

Publication Class
Publication Members
Microsoft.SqlServer.Replication Namespace