Freigeben über


ServerRole.DropMembershipFromRole-Methode

Removes a role from the fixed server role membership.

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

Syntax

'Declaration
Public Sub DropMembershipFromRole ( _
    roleName As String _
)
'Usage
Dim instance As ServerRole 
Dim roleName As String

instance.DropMembershipFromRole(roleName)
public void DropMembershipFromRole(
    string roleName
)
public:
void DropMembershipFromRole(
    String^ roleName
)
member DropMembershipFromRole : 
        roleName:string -> unit
public function DropMembershipFromRole(
    roleName : String
)

Parameter

  • roleName
    Typ: System.String
    A String value that specifies the role that is to be removed from the fixed server role membership.

Siehe auch

Verweis

ServerRole Klasse

Microsoft.SqlServer.Management.Smo-Namespace