DatabaseRoleCollection.Add 方法
Adds the specified database role to the collection.
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Sub Add ( _
databaseRole As DatabaseRole _
)
用法
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
)
参数
- databaseRole
类型:Microsoft.SqlServer.Management.Smo.DatabaseRole
DatabaseRole object.