Partager via


Classe PermissionInfo

The PermissionInfo class represents information regarding granted or denied privileges.

Hiérarchie d'héritage

System.Object
  Microsoft.SqlServer.Management.Smo.PermissionInfo
    Microsoft.SqlServer.Management.Smo.DatabasePermissionInfo
    Microsoft.SqlServer.Management.Smo.ObjectPermissionInfo
    Microsoft.SqlServer.Management.Smo.ServerPermissionInfo

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

Syntaxe

'Déclaration
Public Class PermissionInfo
'Utilisation
Dim instance As PermissionInfo
public class PermissionInfo
public ref class PermissionInfo
type PermissionInfo =  class end
public class PermissionInfo

Le type PermissionInfo expose les membres suivants.

Propriétés

  Nom Description
Propriété publique ColumnName Gets the name of the column that has permissions granted or denied.
Propriété publique Grantee Gets the name of the database user, logon, or database role who has been granted or denied access to the object.
Propriété publique GranteeType Gets the type of grantee.
Propriété publique Grantor Gets the name of the database user, logon, or database role who granted or denied access to the object.
Propriété publique GrantorType Gets the type of grantor.
Propriété publique ObjectClass Gets the object class for the object to which permissions have been granted or denied.
Propriété publique ObjectID Gets the ID value that uniquely identifies the object to which the permission applies.
Propriété publique ObjectName Gets the name of the object to which the permission applies.
Propriété publique ObjectSchema Gets the schema of the object to which the permission applies.
Propriété publique PermissionState Gets the permission state of the object to which the permission applies, such as whether the permission is granted, denied, granted with grant, or revoked.
Propriété protégée PermissionTypeInternal Identifié à titre d'information uniquement. Non pris en charge. La compatibilité future n'est pas garantie.

Haut de la page

Méthodes

  Nom Description
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
Méthode publique ToString Returns the object as a String value. (remplace Object.ToString().)

Haut de la page

Notes

The PermissionInfo object is returned by the EnumObjectPermissions method.

Exemples

Octroi, révocation et refus d'autorisations

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.

Voir aussi

Référence

Espace de noms Microsoft.SqlServer.Management.Smo

Autres ressources

sys.syspermissions (Transact-SQL)