AvailabilityReplica Constructor (AvailabilityGroup, String)
Initializes a new instance of the AvailabilityReplica class on the specified availability group and with the specified name.
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public Sub New ( _
availabilityGroup As AvailabilityGroup, _
name As String _
)
'Uso
Dim availabilityGroup As AvailabilityGroup
Dim name As String
Dim instance As New AvailabilityReplica(availabilityGroup, _
name)
public AvailabilityReplica(
AvailabilityGroup availabilityGroup,
string name
)
public:
AvailabilityReplica(
AvailabilityGroup^ availabilityGroup,
String^ name
)
new :
availabilityGroup:AvailabilityGroup *
name:string -> AvailabilityReplica
public function AvailabilityReplica(
availabilityGroup : AvailabilityGroup,
name : String
)
Parámetros
- availabilityGroup
Tipo: Microsoft.SqlServer.Management.Smo.AvailabilityGroup
The specified availability group in which to create the availability replica.
- name
Tipo: System.String
The specified name of the availability replica to be created.