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 に対して指定したデータベースがデータベース ミラーリングに参加しない場合には、空の文字列が返されます。

適用対象