ServerRole Clase

The ServerRole object represents a Microsoft SQL Server security role.

Espacio de nombres:  Microsoft.SqlServer.Management.Smo
Ensamblado:  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Sintaxis

'Declaración
<SfcElementTypeAttribute("Role")> _
Public NotInheritable Class ServerRole _
    Inherits NamedSmoObject
'Uso
Dim instance As ServerRole
[SfcElementTypeAttribute("Role")]
public sealed class ServerRole : NamedSmoObject
[SfcElementTypeAttribute(L"Role")]
public ref class ServerRole sealed : public NamedSmoObject
[<SealedAttribute>]
[<SfcElementTypeAttribute("Role")>]
type ServerRole =  
    class
        inherit NamedSmoObject
    end
public final class ServerRole extends NamedSmoObject

Notas

To get ServerRole object properties, users can be a member of the public fixed server role.

To add or remove members from a fixed server role, users must have ALTER ANY LOGIN permission on the server or be a member of the sysadmin fixed server role.

Thread Safety

Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Seguridad para subprocesos

Todos los miembros públicos static (Shared en Visual Basic) de este tipo son seguros para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.