다음을 통해 공유


DatabaseMapping 클래스

The DatabaseMapping object represents a SQL Server database mapping.

상속 계층

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo..::..DatabaseMapping

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

구문

‘선언
Public NotInheritable Class DatabaseMapping
‘사용 방법
Dim instance As DatabaseMapping
public sealed class DatabaseMapping
public ref class DatabaseMapping sealed
[<SealedAttribute>]
type DatabaseMapping =  class end
public final class DatabaseMapping

DatabaseMapping 유형에서 다음 멤버를 표시합니다.

생성자

  이름 설명
공용 메서드 DatabaseMapping Initializes a new instance of the DatabaseMapping class for the specified login, database, and user.

맨 위로 이동

속성

  이름 설명
공용 속성 DBName Gets the name of the database in which the login is mapped to the database user.
공용 속성 LoginName Gets the name of the login that is mapped to the user in the database.
공용 속성 UserName Gets the database user that is mapped to the login in the database.

맨 위로 이동

메서드

  이름 설명
공용 메서드 Equals (Object에서 상속됨)
보호된 메서드 Finalize (Object에서 상속됨)
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetType (Object에서 상속됨)
보호된 메서드 MemberwiseClone (Object에서 상속됨)
공용 메서드 ToString Returns a string that represents the DatabaseMapping object. (Object. . :: . .ToString() () () ()을(를) 재정의함)

맨 위로 이동

주의

A login allows access to SQL Server, though it does not allocate permissions at a database level. Each login requires mapping to a database user within each database. The information about each mapping is stored in the DatabaseMapping object. Every login has a database mapping for each database that it can access.

Thread Safety

이 유형의 모든 public static(Microsoft Visual Basic의 경우 공유) 멤버는 다중 스레드 작업을 수행하기에 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.