Database.MirroringPartnerInstance プロパティ

ミラーリング パートナーが構成されている SQL Server のインスタンスを取得します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public ReadOnly Property MirroringPartnerInstance As String 
    Get
'使用
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

プロパティ値

型: System.String
SQL Server のインスタンスを示す String 値です。

使用例

データベース オブジェクトでの作業

関連項目

参照

Database クラス

Microsoft.SqlServer.Management.Smo 名前空間

その他の技術情報

データベース ミラーリングの管理

エンドポイントの実装

データベースの作成、変更、および削除

CREATE DATABASE (Transact-SQL)