DatabaseRoleCollection.Add Method
Adds the specified database role to the collection.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
Syntax
'Declaration
Public Sub Add ( _
databaseRole As DatabaseRole _
)
'Usage
Dim instance As DatabaseRoleCollection
Dim databaseRole As DatabaseRole
instance.Add(databaseRole)
public void Add(
DatabaseRole databaseRole
)
public:
void Add(
DatabaseRole^ databaseRole
)
member Add :
databaseRole:DatabaseRole -> unit
public function Add(
databaseRole : DatabaseRole
)
Parameters
- databaseRole
Type: Microsoft.SqlServer.Management.Smo.DatabaseRole
DatabaseRole object.