共用方式為


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
)

範例

使用集合