Delen via


AvailabilityGroup.PrimaryReplicaServerName Property

Gets the collection for the primary replica server name of the availability group.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property PrimaryReplicaServerName As String 
    Get
'Usage
Dim instance As AvailabilityGroup 
Dim value As String 

value = instance.PrimaryReplicaServerName
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
public string PrimaryReplicaServerName { get; }
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
public:
property String^ PrimaryReplicaServerName {
    String^ get ();
}
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
member PrimaryReplicaServerName : string
function get PrimaryReplicaServerName () : String

Property Value

Type: System.String
The collection for the primary replica server name of the availability group.

See Also

Reference

AvailabilityGroup Class

Microsoft.SqlServer.Management.Smo Namespace