Classe ObjectPermissionInfo
The ObjectPermissionInfo object represents information about a SQL Server object permission.
Hiérarchie d'héritage
System.Object
Microsoft.SqlServer.Management.Smo.PermissionInfo
Microsoft.SqlServer.Management.Smo.ObjectPermissionInfo
Espace de noms : Microsoft.SqlServer.Management.Smo
Assembly : Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Syntaxe
'Déclaration
Public Class ObjectPermissionInfo _
Inherits PermissionInfo
'Utilisation
Dim instance As ObjectPermissionInfo
public class ObjectPermissionInfo : PermissionInfo
public ref class ObjectPermissionInfo : public PermissionInfo
type ObjectPermissionInfo =
class
inherit PermissionInfo
end
public class ObjectPermissionInfo extends PermissionInfo
Le type ObjectPermissionInfo expose les membres suivants.
Constructeurs
Nom | Description | |
---|---|---|
ObjectPermissionInfo | Initializes a new instance of the ObjectPermissionInfo class. |
Haut de la page
Propriétés
Nom | Description | |
---|---|---|
ColumnName | Gets the name of the column that has permissions granted or denied. (hérité de PermissionInfo.) | |
Grantee | Gets the name of the database user, logon, or database role who has been granted or denied access to the object. (hérité de PermissionInfo.) | |
GranteeType | Gets the type of grantee. (hérité de PermissionInfo.) | |
Grantor | Gets the name of the database user, logon, or database role who granted or denied access to the object. (hérité de PermissionInfo.) | |
GrantorType | Gets the type of grantor. (hérité de PermissionInfo.) | |
ObjectClass | Gets the object class for the object to which permissions have been granted or denied. (hérité de PermissionInfo.) | |
ObjectID | Gets the ID value that uniquely identifies the object to which the permission applies. (hérité de PermissionInfo.) | |
ObjectName | Gets the name of the object to which the permission applies. (hérité de PermissionInfo.) | |
ObjectSchema | Gets the schema of the object to which the permission applies. (hérité de PermissionInfo.) | |
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. (hérité de PermissionInfo.) | |
PermissionType | Gets the type of permission. | |
PermissionTypeInternal | Identifié à titre d'information uniquement. Non pris en charge. La compatibilité future n'est pas garantie. (hérité de PermissionInfo.) |
Haut de la page
Méthodes
Nom | Description | |
---|---|---|
Equals | (hérité de Object.) | |
Finalize | (hérité de Object.) | |
GetHashCode | (hérité de Object.) | |
GetType | (hérité de Object.) | |
MemberwiseClone | (hérité de Object.) | |
ToString | Returns the object as a String value. (hérité de PermissionInfo.) |
Haut de la page
Notes
The ObjectPermissionInfo object is returned by the EnumObjectPermissions method. It works in a similar way to the ServerPermissionInfo object and the EnumServerPermissions method shown in the example.
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.
Voir aussi
Référence
Espace de noms Microsoft.SqlServer.Management.Smo