ServerRole.DropMembershipFromRole 方法

Removes a role from the fixed server role membership.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public Sub DropMembershipFromRole ( _
    roleName As String _
)
用法
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
)

参数

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

请参阅

参考

ServerRole 类

Microsoft.SqlServer.Management.Smo 命名空间