Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

ObjectPermission Class

The ObjectPermission object represents a SQL Server object permission.

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

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)
'Declaration
Public NotInheritable Class ObjectPermission
'Usage
Dim instance As ObjectPermission

The ObjectPermission type exposes the following members.

  NameDescription
Public propertyStatic memberAlterGets a permission that can be included in the object permission set.
Public propertyStatic memberConnectGets a permission that can be included in the object permission set.
Public propertyStatic memberControlGets a permission that can be included in the object permission set.
Public propertyStatic memberCreateSequenceGets a permission that can be included in the object permission set.
Public propertyStatic memberDeleteGets a permission that can be included in the object permission set.
Public propertyStatic memberExecuteGets a permission that can be included in the object permission set.
Public propertyStatic memberImpersonateGets a permission that can be included in the object permission set.
Public propertyStatic memberInsertGets a permission that can be included in the object permission set.
Public propertyStatic memberReceiveGets a permission that can be included in the object permission set.
Public propertyStatic memberReferencesGets a permission that can be included in the object permission set.
Public propertyStatic memberSelectGets a permission that can be included in the object permission set.
Public propertyStatic memberSendGets a permission that can be included in the object permission set.
Public propertyStatic memberTakeOwnershipGets a permission that can be included in the object permission set.
Public propertyStatic memberUpdateGets a permission that can be included in the object permission set.
Public propertyStatic memberViewChangeTrackingGets a permission that can be included in the object permission set.
Public propertyStatic memberViewDefinitionGets a permission that can be included in the object permission set.
Top
  NameDescription
Public methodStatic memberAddReturns a set of object permissions after adding two object permissions.
Public methodStatic memberBitwiseOrReturns an object permission set by performing a bitwise OR operation on two ObjectPermission objects.
Public methodEqualsDetermines if a ObjectPermission object is the same as the current ObjectPermission object. (Overrides Object.Equals(Object).)
Public methodGetHashCodeThis method supports the SMO infrastructure and is not intended to be used directly from your code. (Overrides Object.GetHashCode.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberToObjectPermissionSetConverts an object permission into an object permission set.
Public methodToString (Inherited from Object.)
Top
  NameDescription
Public operatorStatic memberAdditionCreates an object permission set by performing an addition operation on two ObjectPermission objects.
Public operatorStatic memberBitwiseOrCreates an object permission set by performing a bitwise OR operation on two ObjectPermission objects.
Public operatorStatic memberEqualityCreates an object permission set by performing an equality operation on two ObjectPermission objects.
Public operatorStatic memberWidening(ObjectPermission to ObjectPermissionSet)Converts a single ObjectPermission to a ObjectPermissionSet.
Public operatorStatic memberInequalityCreates an object permission set by performing an inequality operation on two ObjectPermission objects.
Top

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.