GetCurrentPrincipal 메서드

Returns the current database mirroring principal for the specified publication database.

네임스페이스:  Microsoft.SqlServer.Replication
어셈블리:  Microsoft.SqlServer.Rmo(Microsoft.SqlServer.Rmo.dll)

구문

‘선언
Public Function GetCurrentPrincipal ( _
    dbName As String _
) As String
‘사용 방법
Dim instance As ReplicationServer
Dim dbName As String
Dim returnValue As String

returnValue = instance.GetCurrentPrincipal(dbName)
public string GetCurrentPrincipal(
    string dbName
)
public:
String^ GetCurrentPrincipal(
    String^ dbName
)
member GetCurrentPrincipal : 
        dbName:string -> string 
public function GetCurrentPrincipal(
    dbName : String
) : String

매개 변수

반환 값

유형: System. . :: . .String
A String value.

주의

This method is used to support replication with database mirroring. For more information, see 복제 및 데이터베이스 미러링.

If the database specified for dbName does not participate in database mirroring, an empty string is returned.