Partager via


Propriété AvailabilityGroup.PrimaryReplicaServerName

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property PrimaryReplicaServerName As String 
    Get
'Utilisation
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

Valeur de propriété

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

Voir aussi

Référence

AvailabilityGroup Classe

Espace de noms Microsoft.SqlServer.Management.Smo