语言

MergePublication 构造函数

定义

创建类的新实例 MergePublication 。

重载

名称 说明
MergePublication()

创建类的新实例 MergePublication 。

MergePublication(String, String, ServerConnection)

初始化一个带有指定名称、数据库及与Publisher连接的类的新实例MergePublication。

MergePublication(String, String, ServerConnection, Boolean)

创建该类的实例MergePublication,指定是否应默认创建 快照代理 作业。

注解

更新文本:2006年7月17日

下表显示了新实例的 MergePublication默认属性值。 表中未明确枚举的任何属性都被初始化为一个 null 值。

财产 默认值
Attributes 的值 AllowPush, CentralizedConflicts, DecentralizedConflicts, IndependentAgentImmediateSync,AllowPartitionRealignment

PublicationAttributes
AutomaticReinitializationPolicy Reinitialize对于AutomaticReinitializationPolicies
CachePropertyChanges false
CompatibilityLevel LatestVersion对于PublicationCompatibilityLevel
ConflictRetention 14(天)
CreateSnapshotAgentByDefault false
FtpPort 1 21
HasSubscription false
IsExistingObject false
MaxConcurrentDynamicSnapshots 0(无最大值)
MaxConcurrentMerge 0(无最大值)
PartitionGroupsOption AutoSet对于PartitionGroupsOption
Priority 100
ReplicateDdl All对于DdlReplicationOptions
RetentionPeriod 14(天)
RetentionPeriodUnit Days对于RetentionPeriodUnits
SnapshotAgentExists false
SnapshotAvailable false
SnapshotGenerationAgentPublisherSecurity true对于WindowsAuthentication
SnapshotMethod BcpNative对于InitialSyncType
SnapshotSchedule 99991231值 ActiveEndDate

235959 的值 ActiveEndTime

发表创建日期的数值 ActiveStartDate

值为500,当 ActiveStartTime

值为14,当 FrequencyInterval

对于 FrequencyRecurrenceFactor

First对于FrequencyRelativeInterval

Once对于FrequencySubDay

值为5,当 FrequencySubDayInterval

Daily对于FrequencyType
Status Active对于State
Type Merge对于PublicationType
UsesHostName false

1 FTP(文件传输协议)端口仅在通过 FTP 传输快照时使用。 有关详细信息,请参阅通过 FTP 传输快照。

MergePublication()

创建类的新实例 MergePublication 。

public:
 MergePublication();
public MergePublication();
Public Sub New ()

注解

默认构造函数会将任何字段初始化为其默认值。

适用于

MergePublication(String, String, ServerConnection)

初始化一个带有指定名称、数据库及与Publisher连接的类的新实例MergePublication。

public:
 MergePublication(System::String ^ name, System::String ^ databaseName, Microsoft::SqlServer::Management::Common::ServerConnection ^ connectionContext);
public MergePublication(string name, string databaseName, Microsoft.SqlServer.Management.Common.ServerConnection connectionContext);
new Microsoft.SqlServer.Replication.MergePublication : string * string * Microsoft.SqlServer.Management.Common.ServerConnection -> Microsoft.SqlServer.Replication.MergePublication
Public Sub New (name As String, databaseName As String, connectionContext As ServerConnection)

参数

name
String

合并发布的名称。

databaseName
String

数据库的名称。

connectionContext
ServerConnection

建立与 MicrosoftSQL Server 实例连接所需的连接上下文。

另请参阅

适用于

MergePublication(String, String, ServerConnection, Boolean)

创建该类的实例MergePublication,指定是否应默认创建 快照代理 作业。

public:
 MergePublication(System::String ^ name, System::String ^ databaseName, Microsoft::SqlServer::Management::Common::ServerConnection ^ connectionContext, bool createSnapshotAgentByDefault);
public MergePublication(string name, string databaseName, Microsoft.SqlServer.Management.Common.ServerConnection connectionContext, bool createSnapshotAgentByDefault);
new Microsoft.SqlServer.Replication.MergePublication : string * string * Microsoft.SqlServer.Management.Common.ServerConnection * bool -> Microsoft.SqlServer.Replication.MergePublication
Public Sub New (name As String, databaseName As String, connectionContext As ServerConnection, createSnapshotAgentByDefault As Boolean)

参数

name
String

合并发布的名称。

databaseName
String

数据库的名称。

connectionContext
ServerConnection

建立与 MicrosoftSQL Server 实例连接所需的连接上下文。

createSnapshotAgentByDefault
Boolean

true为发布创建 快照代理 作业;false若不为发布创建 快照代理 作业,则必须手动运行 快照代理 以生成初始快照。

适用于