다음을 통해 공유


ReplicationServer.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

매개 변수

  • dbName
    유형: System.String
    Name of a published database that participates in database mirroring.

반환 값

유형: System.String
A String value.

주의

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

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

참고 항목

참조

ReplicationServer 클래스

Microsoft.SqlServer.Replication 네임스페이스