ObjectPermission ObjectPermission ObjectPermission Class

Definition

The ObjectPermission object represents a SQL Server object permission.

public ref class ObjectPermission sealed
public sealed class ObjectPermission
Public NotInheritable Class ObjectPermission
Inheritance
ObjectPermissionObjectPermissionObjectPermission

Examples

Granting, Revoking, and Denying Permissions

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.

Properties

Alter Alter Alter

Gets a permission that can be included in the object permission set.

Connect Connect Connect

Gets a permission that can be included in the object permission set.

Control Control Control

Gets a permission that can be included in the object permission set.

CreateSequence CreateSequence CreateSequence

Gets a permission that can be included in the object permission set.

Delete Delete Delete

Gets a permission that can be included in the object permission set.

Execute Execute Execute

Gets a permission that can be included in the object permission set.

Impersonate Impersonate Impersonate

Gets a permission that can be included in the object permission set.

Insert Insert Insert

Gets a permission that can be included in the object permission set.

Receive Receive Receive

Gets a permission that can be included in the object permission set.

References References References

Gets a permission that can be included in the object permission set.

Select Select Select

Gets a permission that can be included in the object permission set.

Send Send Send

Gets a permission that can be included in the object permission set.

TakeOwnership TakeOwnership TakeOwnership

Gets a permission that can be included in the object permission set.

Update Update Update

Gets a permission that can be included in the object permission set.

ViewChangeTracking ViewChangeTracking ViewChangeTracking

Gets a permission that can be included in the object permission set.

ViewDefinition ViewDefinition ViewDefinition

Gets a permission that can be included in the object permission set.

Methods

Add(ObjectPermission, ObjectPermission) Add(ObjectPermission, ObjectPermission) Add(ObjectPermission, ObjectPermission)

Returns a set of object permissions after adding two object permissions.

BitwiseOr(ObjectPermission, ObjectPermission) BitwiseOr(ObjectPermission, ObjectPermission) BitwiseOr(ObjectPermission, ObjectPermission)

Returns an object permission set by performing a bitwise OR operation on two ObjectPermission objects.

Equals(Object) Equals(Object) Equals(Object)

Determines if a ObjectPermission object is the same as the current ObjectPermission object.

GetHashCode() GetHashCode() GetHashCode()

This method supports the SMO infrastructure and is not intended to be used directly from your code.

ToObjectPermissionSet(ObjectPermission) ToObjectPermissionSet(ObjectPermission) ToObjectPermissionSet(ObjectPermission)

Converts an object permission into an object permission set.

Operators

Addition(ObjectPermission, ObjectPermission) Addition(ObjectPermission, ObjectPermission) Addition(ObjectPermission, ObjectPermission)

Creates an object permission set by performing an addition operation on two ObjectPermission objects.

BitwiseOr(ObjectPermission, ObjectPermission) BitwiseOr(ObjectPermission, ObjectPermission) BitwiseOr(ObjectPermission, ObjectPermission)

Creates an object permission set by performing a bitwise OR operation on two ObjectPermission objects.

Equality(ObjectPermission, ObjectPermission) Equality(ObjectPermission, ObjectPermission) Equality(ObjectPermission, ObjectPermission)

Creates an object permission set by performing an equality operation on two ObjectPermission objects.

Implicit(ObjectPermission to ObjectPermissionSet) Implicit(ObjectPermission to ObjectPermissionSet) Implicit(ObjectPermission to ObjectPermissionSet)

Converts a single ObjectPermission to a ObjectPermissionSet.

Inequality(ObjectPermission, ObjectPermission) Inequality(ObjectPermission, ObjectPermission) Inequality(ObjectPermission, ObjectPermission)

Creates an object permission set by performing an inequality operation on two ObjectPermission objects.

Applies to