DatabaseRole DatabaseRole DatabaseRole Constructors

Definition

Overloads

DatabaseRole() DatabaseRole() DatabaseRole()

Initializes a new instance of the DatabaseRole class.

DatabaseRole(Database, String) DatabaseRole(Database, String)

Initializes a new instance of the DatabaseRole class.

DatabaseRole() DatabaseRole() DatabaseRole()

Initializes a new instance of the DatabaseRole class.

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

Examples

Managing Users, Roles, and Logins

Remarks

The default constructor initializes any fields to their default values.

DatabaseRole(Database, String) DatabaseRole(Database, String)

Initializes a new instance of the DatabaseRole class.

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

A Database object value that specifies the database on which to create the role.

name
String String String

A String value that specifies the name of the database role.

Examples

Managing Users, Roles, and Logins

Applies to