ReplicationServer.GetCurrentPrincipal(String) メソッド

定義

指定された出版データベースの現在のミラーリングプリンシパルを返します。

public:
 System::String ^ GetCurrentPrincipal(System::String ^ dbName);
public string GetCurrentPrincipal(string dbName);
member this.GetCurrentPrincipal : string -> string
Public Function GetCurrentPrincipal (dbName As String) As String

パラメーター

dbName
String

データベースミラーリングに参加している公開データベースの名前。

返品

String の値。

注釈

この方法はデータベースミラーリングによるレプリケーションをサポートするために使われます。 詳細については、「データベース ミラーリングとレプリケーション (SQL Server)」をご覧ください。

dbNameに指定されたデータベースがミラーリングに参加しない場合、空の文字列が返されます。

適用対象