Clase ObjectPermission
The ObjectPermission object represents a SQL Server object permission.
Jerarquía de herencia
System.Object
Microsoft.SqlServer.Management.Smo.ObjectPermission
Espacio de nombres: Microsoft.SqlServer.Management.Smo
Ensamblado: Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)
Sintaxis
'Declaración
Public NotInheritable Class ObjectPermission
'Uso
Dim instance As ObjectPermission
public sealed class ObjectPermission
public ref class ObjectPermission sealed
[<SealedAttribute>]
type ObjectPermission = class end
public final class ObjectPermission
El tipo ObjectPermission expone los siguientes miembros.
Propiedades
Nombre | Descripción | |
---|---|---|
Alter | Gets a permission that can be included in the object permission set. | |
Connect | Gets a permission that can be included in the object permission set. | |
Control | Gets a permission that can be included in the object permission set. | |
CreateSequence | Gets a permission that can be included in the object permission set. | |
Delete | Gets a permission that can be included in the object permission set. | |
Execute | Gets a permission that can be included in the object permission set. | |
Impersonate | Gets a permission that can be included in the object permission set. | |
Insert | Gets a permission that can be included in the object permission set. | |
Receive | Gets a permission that can be included in the object permission set. | |
References | Gets a permission that can be included in the object permission set. | |
Select | Gets a permission that can be included in the object permission set. | |
Send | Gets a permission that can be included in the object permission set. | |
TakeOwnership | Gets a permission that can be included in the object permission set. | |
Update | Gets a permission that can be included in the object permission set. | |
ViewChangeTracking | Gets a permission that can be included in the object permission set. | |
ViewDefinition | Gets a permission that can be included in the object permission set. |
Arriba
Métodos
Nombre | Descripción | |
---|---|---|
Add | Returns a set of object permissions after adding two object permissions. | |
BitwiseOr | Returns an object permission set by performing a bitwise OR operation on two ObjectPermission objects. | |
Equals | Determines if a ObjectPermission object is the same as the current ObjectPermission object. (Invalida Object.Equals(Object).) | |
GetHashCode | This method supports the SMO infrastructure and is not intended to be used directly from your code. (Invalida Object.GetHashCode().) | |
GetType | (Se hereda de Object.) | |
ToObjectPermissionSet | Converts an object permission into an object permission set. | |
ToString | (Se hereda de Object.) |
Arriba
Operadores
Nombre | Descripción | |
---|---|---|
Addition | Creates an object permission set by performing an addition operation on two ObjectPermission objects. | |
BitwiseOr | Creates an object permission set by performing a bitwise OR operation on two ObjectPermission objects. | |
Equality | Creates an object permission set by performing an equality operation on two ObjectPermission objects. | |
Implicit(ObjectPermission to ObjectPermissionSet) | Converts a single ObjectPermission to a ObjectPermissionSet. | |
Inequality | Creates an object permission set by performing an inequality operation on two ObjectPermission objects. |
Arriba
Comentarios
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
Todos los miembros estáticos (compartidos en Microsoft Visual Basic) públicos de este tipo son seguros para operaciones multiproceso. No se garantiza que los miembros de instancia sean seguros para subprocesos.
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.