Clase PermissionInfo
The PermissionInfo class represents information regarding granted or denied privileges.
Jerarquía de herencia
System.Object
Microsoft.SqlServer.Management.Smo.PermissionInfo
Microsoft.SqlServer.Management.Smo.DatabasePermissionInfo
Microsoft.SqlServer.Management.Smo.ObjectPermissionInfo
Microsoft.SqlServer.Management.Smo.ServerPermissionInfo
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public Class PermissionInfo
'Uso
Dim instance As PermissionInfo
public class PermissionInfo
public ref class PermissionInfo
type PermissionInfo = class end
public class PermissionInfo
El tipo PermissionInfo expone los siguientes miembros.
Propiedades
Nombre | Descripción | |
---|---|---|
ColumnName | Gets the name of the column that has permissions granted or denied. | |
Grantee | Gets the name of the database user, logon, or database role who has been granted or denied access to the object. | |
GranteeType | Gets the type of grantee. | |
Grantor | Gets the name of the database user, logon, or database role who granted or denied access to the object. | |
GrantorType | Gets the type of grantor. | |
ObjectClass | Gets the object class for the object to which permissions have been granted or denied. | |
ObjectID | Gets the ID value that uniquely identifies the object to which the permission applies. | |
ObjectName | Gets the name of the object to which the permission applies. | |
ObjectSchema | Gets the schema of the object to which the permission applies. | |
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. | |
PermissionTypeInternal | Solamente se identifica con fines informativos. No compatible. La compatibilidad con versiones posteriores no está garantizada. |
Arriba
Métodos
Nombre | Descripción | |
---|---|---|
Equals | (Se hereda de Object.) | |
Finalize | (Se hereda de Object.) | |
GetHashCode | (Se hereda de Object.) | |
GetType | (Se hereda de Object.) | |
MemberwiseClone | (Se hereda de Object.) | |
ToString | Returns the object as a String value. (Invalida Object.ToString().) |
Arriba
Comentarios
The PermissionInfo object is returned by the EnumObjectPermissions method.
Ejemplos
Conceder, revocar y denegar permisos
Seguridad para subprocesos
Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.
Vea también
Referencia
Espacio de nombres Microsoft.SqlServer.Management.Smo