AvailabilityReplica Constructor (AvailabilityGroup, String)
Initializes a new instance of the AvailabilityReplica class on the specified availability group and with the specified name.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub New ( _
availabilityGroup As AvailabilityGroup, _
name As String _
)
'Usage
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
)
Parameters
- availabilityGroup
Type: Microsoft.SqlServer.Management.Smo.AvailabilityGroup
The specified availability group in which to create the availability replica.
- name
Type: System.String
The specified name of the availability replica to be created.