Partager via


Propriété DatabaseReplicaState.AvailabilityReplicaServerName

Gets the server name of the availability replica.

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

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
<SfcKeyAttribute()> _
Public ReadOnly Property AvailabilityReplicaServerName As String 
    Get
'Utilisation
Dim instance As DatabaseReplicaState 
Dim value As String 

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

Valeur de propriété

Type : System.String
The server name of the availability replica.

Voir aussi

Référence

DatabaseReplicaState Classe

Espace de noms Microsoft.SqlServer.Management.Smo