Share via


DatabaseRole.AddMember Method

Adds an existing database user or database role to the database role.

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

Syntax

'Declaration
Public Sub AddMember ( _
    name As String _
)
'Usage
Dim instance As DatabaseRole
Dim name As String

instance.AddMember(name)
public void AddMember(
    string name
)
public:
void AddMember(
    String^ name
)
member AddMember : 
        name:string -> unit 
public function AddMember(
    name : String
)

Parameters

  • name
    Type: System.String
    A String value that specifies the database user or role to be added to the referenced role.