Freigeben über


DatabaseMapping Constructor

Initializes a new instance of the DatabaseMapping class for the specified login, database, and user.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Declaration
Public Sub New ( _
    loginName As String, _
    dbName As String, _
    userName As String _
)
public DatabaseMapping (
    string loginName,
    string dbName,
    string userName
)
public:
DatabaseMapping (
    String^ loginName, 
    String^ dbName, 
    String^ userName
)
public DatabaseMapping (
    String loginName, 
    String dbName, 
    String userName
)
public function DatabaseMapping (
    loginName : String, 
    dbName : String, 
    userName : String
)

Parameter

  • loginName
    A String value that specifies the login.
  • dbName
    A String value that specifies the database.
  • userName
    A String value that specifies the user.

Hinweise

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Beispiel

How to: Enumerate Logins and Associated Users in Visual Basic .NET

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

DatabaseMapping Class
DatabaseMapping Members
Microsoft.SqlServer.Management.Smo Namespace

Andere Ressourcen

Managing Users, Roles, and Logins
Prinzipale