Condividi tramite


Proprietà Database.MirroringPartnerInstance

Gets the instance of SQL Server on which the mirroring partner is configured.

Spazio dei nomi  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

'Dichiarazione
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property MirroringPartnerInstance As String 
    Get
'Utilizzo
Dim instance As Database 
Dim value As String 

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

Valore proprietà

Tipo: System.String
A String value that specifies the instance of SQL Server.

Esempi

Utilizzo degli oggetti di database

Vedere anche

Riferimento

Database Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo

Altre risorse

Amministrazione del mirroring del database

Implementazione di endpoint

Creazione, modifica e rimozione di database

CREATE DATABASE (Transact-SQL)