Constructeur DatabaseMapping
Initializes a new instance of the DatabaseMapping class for the specified login, database, and user.
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Sub New ( _
loginName As String, _
dbName As String, _
userName As String _
)
'Utilisation
Dim loginName As String
Dim dbName As String
Dim userName As String
Dim instance As New DatabaseMapping(loginName, _
dbName, userName)
public DatabaseMapping(
string loginName,
string dbName,
string userName
)
public:
DatabaseMapping(
String^ loginName,
String^ dbName,
String^ userName
)
new :
loginName:string *
dbName:string *
userName:string -> DatabaseMapping
public function DatabaseMapping(
loginName : String,
dbName : String,
userName : String
)
Paramètres
- loginName
Type : System.String
A String value that specifies the login.
- dbName
Type : System.String
A String value that specifies the database.
- userName
Type : System.String
A String value that specifies the user.
Exemples
Gestion des utilisateurs, rôles et connexions
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo