Classe ServerPermission

The ServerPermission object represents a SQL Server server-level permission.

Hiérarchie d'héritage

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo..::..ServerPermission

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
Public NotInheritable Class ServerPermission
'Utilisation
Dim instance As ServerPermission
public sealed class ServerPermission
public ref class ServerPermission sealed
[<SealedAttribute>]
type ServerPermission =  class end
public final class ServerPermission

Le type ServerPermission expose les membres suivants.

Propriétés

  Nom Description
Propriété publiqueMembre statique AdministerBulkOperations Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique AlterAnyConnection Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique AlterAnyCredential Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique AlterAnyDatabase Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique AlterAnyEndpoint Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique AlterAnyEventNotification Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique AlterAnyLinkedServer Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique AlterAnyLogin Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique AlterAnyServerAudit Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique AlterResources Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique AlterServerState Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique AlterSettings Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique AlterTrace Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique AuthenticateServer Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique ConnectSql Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique ControlServer Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique CreateAnyDatabase Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique CreateDdlEventNotification Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique CreateEndpoint Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique CreateTraceEventNotification Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique ExternalAccessAssembly Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique Shutdown Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique UnsafeAssembly Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique ViewAnyDatabase Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique ViewAnyDefinition Gets a permission that can be included in the server permission set.
Propriété publiqueMembre statique ViewServerState Gets a permission that can be included in the server permission set.

Haut de la page

Méthodes

  Nom Description
Méthode publiqueMembre statique Add Returns a set of server permissions after adding a new server permission to an existing set of server permissions.
Méthode publiqueMembre statique BitwiseOr Combines two Server Permissions using an inclusive OR.
Méthode publique Equals Determines whether the referenced server permission object is equal to a specified object. (remplace Object. . :: . .Equals(Object).)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode This method supports the SQL Server infrastructure and is not intended to be used directly from your code. (remplace Object. . :: . .GetHashCode() () () ().)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publiqueMembre statique ToServerPermissionSet Returns a set of server permissions based on a single server permission, by converting a ServerPermission object to a ServerPermissionSet object.
Méthode publique ToString (hérité de Object.)

Haut de la page

Opérateurs

  Nom Description
Opérateur publicMembre statique Addition Creates a server permission set by performing an addition operation on two ServerPermission objects.
Opérateur publicMembre statique BitwiseOr Creates a server permission set by performing a bitwise OR operation on two ServerPermission objects.
Opérateur publicMembre statique Equality Creates a server permission set by performing an equality operation on two ServerPermission objects.
Opérateur publicMembre statique Implicit Widening Implicit Implicit Implicit(ServerPermission to ServerPermissionSet) Transforms a single Server Permission to Server Permission Set.
Opérateur publicMembre statique Inequality Creates a server permission set by performing an inequality operation on two ServerPermission objects.

Haut de la page

Notes

Server permissions are required when granting, denying, or revoking server-level permissions on an instance of SQL Server. The ServerPermission object is used to specify the set of permissions that apply to the Grant, Deny, and Revoke methods of the Server object. Also, server permissions can be added to the ServerPermissionSet object, which can also be used with the Deny, Revoke, and Grant methods.

Thread Safety

Tout membre statique public (Partagé dans Microsoft Visual Basic) de ce type est sûr dans le cadre des opérations à plusieurs threads. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.