다음을 통해 공유


ReplicationServer.GetCurrentPrincipal Method

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

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

구문

‘선언
Public Function GetCurrentPrincipal ( _
    dbName As String _
) As String
public string GetCurrentPrincipal (
    string dbName
)
public:
String^ GetCurrentPrincipal (
    String^ dbName
)
public String GetCurrentPrincipal (
    String dbName
)
public function GetCurrentPrincipal (
    dbName : String
) : String

매개 변수

  • dbName
    Name of a published database that participates in database mirroring.

반환 값

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.

스레드 보안

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

ReplicationServer Class
ReplicationServer Members
Microsoft.SqlServer.Replication Namespace