Propriété Database.MirroringPartner

Gets or sets the address of the Moteur de base de données instance that is the partner server for database mirroring.

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

Syntaxe

'Déclaration
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property MirroringPartner As String 
    Get 
    Set
'Utilisation
Dim instance As Database 
Dim value As String 

value = instance.MirroringPartner

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

Valeur de propriété

Type : System.String
A String value that specifies the name of the partner server.

Exemples

Utilisation des objets de base de données

Voir aussi

Référence

Database Classe

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

Administration de la mise en miroir de bases de données

Implémentation de points de terminaison

Création, modification et suppression de bases de données

CREATE DATABASE (Transact-SQL)