Share via


ServerRoleCollection.Add Method

Adds a new Server Role to the Server Role Collection.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Sub Add ( _
    serverRole As ServerRole _
)
'Usage
Dim instance As ServerRoleCollection 
Dim serverRole As ServerRole

instance.Add(serverRole)
public void Add(
    ServerRole serverRole
)
public:
void Add(
    ServerRole^ serverRole
)
member Add : 
        serverRole:ServerRole -> unit
public function Add(
    serverRole : ServerRole
)

Parameters

Examples

Using Collections

See Also

Reference

ServerRoleCollection Class

Microsoft.SqlServer.Management.Smo Namespace