ObjectPermission Class

The ObjectPermission object represents a SQL Server object permission.

Inheritance Hierarchy

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public NotInheritable Class ObjectPermission
'Usage
Dim instance As ObjectPermission
public sealed class ObjectPermission
public ref class ObjectPermission sealed
[<SealedAttribute>]
type ObjectPermission =  class end
public final class ObjectPermission

The ObjectPermission type exposes the following members.

Properties

  Name Description
Public propertyStatic member Alter Gets a permission that can be included in the object permission set.
Public propertyStatic member Connect Gets a permission that can be included in the object permission set.
Public propertyStatic member Control Gets a permission that can be included in the object permission set.
Public propertyStatic member Delete Gets a permission that can be included in the object permission set.
Public propertyStatic member Execute Gets a permission that can be included in the object permission set.
Public propertyStatic member Impersonate Gets a permission that can be included in the object permission set.
Public propertyStatic member Insert Gets a permission that can be included in the object permission set.
Public propertyStatic member Receive Gets a permission that can be included in the object permission set.
Public propertyStatic member References Gets a permission that can be included in the object permission set.
Public propertyStatic member Select Gets a permission that can be included in the object permission set.
Public propertyStatic member Send Gets a permission that can be included in the object permission set.
Public propertyStatic member TakeOwnership Gets a permission that can be included in the object permission set.
Public propertyStatic member Update Gets a permission that can be included in the object permission set.
Public propertyStatic member ViewChangeTracking Gets a permission that can be included in the object permission set.
Public propertyStatic member ViewDefinition Gets a permission that can be included in the object permission set.

Top

Methods

  Name Description
Public methodStatic member Add Returns a set of object permissions after adding two object permissions.
Public methodStatic member BitwiseOr Returns an object permission set by performing a bitwise OR operation on two ObjectPermission objects.
Public method Equals Determines if a ObjectPermission object is the same as the current ObjectPermission object. (Overrides Object.Equals(Object).)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode This method supports the SMO infrastructure and is not intended to be used directly from your code. (Overrides Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public methodStatic member ToObjectPermissionSet Converts an object permission into an object permission set.
Public method ToString (Inherited from Object.)

Top

Operators

  Name Description
Public operatorStatic member Addition Creates an object permission set by performing an addition operation on two ObjectPermission objects.
Public operatorStatic member BitwiseOr Creates an object permission set by performing a bitwise OR operation on two ObjectPermission objects.
Public operatorStatic member Equality Creates an object permission set by performing an equality operation on two ObjectPermission objects.
Public operatorStatic member Implicit(ObjectPermission to ObjectPermissionSet) Converts a single ObjectPermission to a ObjectPermissionSet
Public operatorStatic member Inequality Creates an object permission set by performing an inequality operation on two ObjectPermission objects.

Top

Remarks

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

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.