DatabaseRole.DropMember Method

Removes the specified database user or role from the referenced database role.

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

Syntax

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

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

Parameters

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