User User User Constructors

Definition

Overloads

User() User() User()

Initializes a new instance of the User class.

User(Database, String) User(Database, String)

Initializes a new instance of the User class on the specified database with the specified name.

User() User() User()

Initializes a new instance of the User class.

public:
 User();
public User ();
Public Sub New ()

Examples

Managing Users, Roles, and Logins

Remarks

The default constructor initializes any fields to their default values.

User(Database, String) User(Database, String)

Initializes a new instance of the User class on the specified database with the specified name.

public:
 User(Microsoft::SqlServer::Management::Smo::Database ^ database, System::String ^ name);
public User (Microsoft.SqlServer.Management.Smo.Database database, string name);
Parameters
database
Database Database Database

A Database object that specifies the database to which the user belongs.

name
String String String

A String value that specifies the name of the user.

Examples

Managing Users, Roles, and Logins

Applies to