Classe ObjectPermission

The ObjectPermission object represents a SQL Server object permission.

Hiérarchie d'héritage

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

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

Syntaxe

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

Le type ObjectPermission expose les membres suivants.

Propriétés

  Nom Description
Propriété publiqueMembre statique Alter Gets a permission that can be included in the object permission set.
Propriété publiqueMembre statique Connect Gets a permission that can be included in the object permission set.
Propriété publiqueMembre statique Control Gets a permission that can be included in the object permission set.
Propriété publiqueMembre statique Delete Gets a permission that can be included in the object permission set.
Propriété publiqueMembre statique Execute Gets a permission that can be included in the object permission set.
Propriété publiqueMembre statique Impersonate Gets a permission that can be included in the object permission set.
Propriété publiqueMembre statique Insert Gets a permission that can be included in the object permission set.
Propriété publiqueMembre statique Receive Gets a permission that can be included in the object permission set.
Propriété publiqueMembre statique References Gets a permission that can be included in the object permission set.
Propriété publiqueMembre statique Select Gets a permission that can be included in the object permission set.
Propriété publiqueMembre statique Send Gets a permission that can be included in the object permission set.
Propriété publiqueMembre statique TakeOwnership Gets a permission that can be included in the object permission set.
Propriété publiqueMembre statique Update Gets a permission that can be included in the object permission set.
Propriété publiqueMembre statique ViewChangeTracking Gets a permission that can be included in the object permission set.
Propriété publiqueMembre statique ViewDefinition Gets a permission that can be included in the object permission set.

Haut de la page

Méthodes

  Nom Description
Méthode publiqueMembre statique Add Returns a set of object permissions after adding two object permissions.
Méthode publiqueMembre statique BitwiseOr Returns an object permission set by performing a bitwise OR operation on two ObjectPermission objects.
Méthode publique Equals Determines if a ObjectPermission object is the same as the current ObjectPermission object. (remplace Object. . :: . .Equals(Object).)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode This method supports the SMO 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 ToObjectPermissionSet Converts an object permission into an object permission set.
Méthode publique ToString (hérité de Object.)

Haut de la page

Opérateurs

  Nom Description
Opérateur publicMembre statique Addition Creates an object permission set by performing an addition operation on two ObjectPermission objects.
Opérateur publicMembre statique BitwiseOr Creates an object permission set by performing a bitwise OR operation on two ObjectPermission objects.
Opérateur publicMembre statique Equality Creates an object permission set by performing an equality operation on two ObjectPermission objects.
Opérateur publicMembre statique Implicit Widening Implicit Implicit Implicit(ObjectPermission to ObjectPermissionSet) Converts a single ObjectPermission to a ObjectPermissionSet
Opérateur publicMembre statique Inequality Creates an object permission set by performing an inequality operation on two ObjectPermission objects.

Haut de la page

Notes

Object permissions are required when running granting, denying, or revoking permissions on an object. The ObjectPermission object is used to specify the set of permissions that apply to the Grant, Deny, and Revoke methods of the object. Also, object permissions can be added to the ObjectPermissionSet 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.