你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

DistributedAvailabilityGroup 构造函数

定义

重载

DistributedAvailabilityGroup()

初始化 DistributedAvailabilityGroup 类的新实例。

DistributedAvailabilityGroup(String, String, String, String, String, String, String, String, Nullable<Guid>, Nullable<Guid>, Nullable<Guid>, String, String)

初始化 DistributedAvailabilityGroup 类的新实例。

DistributedAvailabilityGroup()

初始化 DistributedAvailabilityGroup 类的新实例。

public DistributedAvailabilityGroup ();
Public Sub New ()

适用于

DistributedAvailabilityGroup(String, String, String, String, String, String, String, String, Nullable<Guid>, Nullable<Guid>, Nullable<Guid>, String, String)

初始化 DistributedAvailabilityGroup 类的新实例。

public DistributedAvailabilityGroup (string id = default, string name = default, string type = default, string targetDatabase = default, string sourceEndpoint = default, string primaryAvailabilityGroupName = default, string secondaryAvailabilityGroupName = default, string replicationMode = default, Guid? distributedAvailabilityGroupId = default, Guid? sourceReplicaId = default, Guid? targetReplicaId = default, string linkState = default, string lastHardenedLsn = default);
new Microsoft.Azure.Management.Sql.Models.DistributedAvailabilityGroup : string * string * string * string * string * string * string * string * Nullable<Guid> * Nullable<Guid> * Nullable<Guid> * string * string -> Microsoft.Azure.Management.Sql.Models.DistributedAvailabilityGroup
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional targetDatabase As String = Nothing, Optional sourceEndpoint As String = Nothing, Optional primaryAvailabilityGroupName As String = Nothing, Optional secondaryAvailabilityGroupName As String = Nothing, Optional replicationMode As String = Nothing, Optional distributedAvailabilityGroupId As Nullable(Of Guid) = Nothing, Optional sourceReplicaId As Nullable(Of Guid) = Nothing, Optional targetReplicaId As Nullable(Of Guid) = Nothing, Optional linkState As String = Nothing, Optional lastHardenedLsn As String = Nothing)

参数

id
String

资源 ID。

name
String

资源名称。

type
String

资源类型。

targetDatabase
String

目标数据库的名称

sourceEndpoint
String

源终结点

primaryAvailabilityGroupName
String

主要可用性组名称

secondaryAvailabilityGroupName
String

辅助可用性组名称

replicationMode
String

分布式可用性组的复制模式。 链接创建期间将忽略参数。 可能的值包括:“Async”、“Sync”

distributedAvailabilityGroupId
Nullable<Guid>

分布式可用性组 ID

sourceReplicaId
Nullable<Guid>

源副本 (replica) ID

targetReplicaId
Nullable<Guid>

目标副本 (replica) ID

linkState
String

链接状态

lastHardenedLsn
String

最后一个强化的 lsn

适用于