ObjectPermissionSet Class

 

The ObjectPermissionSet object represents a set of object permissions in Microsoft SQL Server.

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

System.Object
  Microsoft.SqlServer.Management.Smo.PermissionSetBase
    Microsoft.SqlServer.Management.Smo.ObjectPermissionSet

[<Sealed>]
type ObjectPermissionSet = 
    class
        inherit PermissionSetBase
    end

NameDescription
System_CAPS_pubmethodObjectPermissionSet()

Initializes a new instance of the ObjectPermissionSet class.

System_CAPS_pubmethodObjectPermissionSet(ObjectPermission)

Initializes a new instance of the ObjectPermissionSet class based on the specified object permission.

System_CAPS_pubmethodObjectPermissionSet(ObjectPermission[])

Initializes a new instance of the ObjectPermissionSet class based on the specified set of object permissions.

System_CAPS_pubmethodObjectPermissionSet(ObjectPermissionSet)

Initializes a new instance of the ObjectPermissionSet class based on the specified set of object permissions.

NameDescription
System_CAPS_pubpropertyAlter

Gets or sets the Boolean property value that specifies whether to include the ALTER permission in the permission set. The permission lets the grantee change properties, except ownership, of the object.

System_CAPS_pubpropertyConnect

Gets or sets the Boolean property value that specifies whether to include the CONNECT permission in the permission set. The permission lets the grantee create a connection between the object and an instance of SQL Server.

System_CAPS_pubpropertyControl

Gets or sets the Boolean property value that specifies whether to include the CONTROL permission in the permission set. The permission gives the grantee full control over the object, including all defined permissions for the object, the ability to create permissions on the object, and full control over child objects.

System_CAPS_pubpropertyCreateSequence

Gets or sets the Boolean property value that specifies whether to include the CREATE SEQUENCE permission in the permission set. This permission gives the grantee the ability to create a sequence within the database.

System_CAPS_pubpropertyDelete

Gets or sets the Boolean property value that specifies whether to include the DELETE permission in the permission set. The permission lets the grantee delete the object.

System_CAPS_pubpropertyExecute

Gets or sets the Boolean property value that specifies whether to include the EXECUTE permission in the permission set. The permission lets the grantee execute the object.

System_CAPS_pubpropertyImpersonate

Gets or sets the Boolean property value that specifies whether to include the IMPERSONATE permission in the permission set. The permission lets the grantee impersonate the user or the login.

System_CAPS_pubpropertyInsert

Gets or sets the Boolean property value that specifies whether to include the INSERT permission in the permission set. The permission lets the grantee insert data into the object.

System_CAPS_pubpropertyReceive

Gets or sets the Boolean property value that specifies whether to include the RECEIVE permission in the permission set. The permission lets the grantee receive messages from a Service Broker queue.

System_CAPS_pubpropertyReferences

Gets or sets the Boolean property value that specifies whether to include the REFERENCES permission in the permission set. This permission lets the grantee reference data in the object.

System_CAPS_pubpropertySelect

Gets or sets the Boolean property value that specifies whether to include the SELECT permission in the permission set. This permission lets the grantee retrieve data from the object.

System_CAPS_pubpropertySend

Gets or sets the Boolean property value that specifies whether to include the SEND permission in the permission set. This permission lets the grantee send messages to a Service Broker service.

System_CAPS_pubpropertyTakeOwnership

Gets or sets the Boolean property value that specifies whether to include the TAKE OWNERSHIP permission in the permission set. This permission lets the grantee take ownership of the object.

System_CAPS_pubpropertyUpdate

Gets or sets the Boolean property value that specifies whether to include the UPDATE permission in the permission set. This permission lets the grantee modify data in the object.

System_CAPS_pubpropertyViewChangeTracking

Gets or sets the Boolean property value that specifies whether to include the VIEW CHANGE TRACKING permission in the permission set. This permission lets the grantee view the tracking information for a database object.

System_CAPS_pubpropertyViewDefinition

Gets or sets the Boolean property value that specifies whether to include the VIEW DEFINITION permission in the permission set. This permission lets the grantee view the metadata that defines the object.

NameDescription
System_CAPS_pubmethodAdd(ObjectPermission)

Returns an object permission set after adding a new object permission to the referenced permission set.

System_CAPS_pubmethodSystem_CAPS_staticAdd(ObjectPermissionSet, ObjectPermission)

Returns an object permission set after adding a new object permission to the referenced permission set.

System_CAPS_pubmethodEquals(Object)

Determines whether the current ObjectPermissionSet object is equal to a specified object.(Overrides PermissionSetBase.Equals(Object).)

System_CAPS_pubmethodGetHashCode()

This method supports the SQL Server infrastructure and is not intended to be used directly from your code.(Overrides PermissionSetBase.GetHashCode().)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodRemove(ObjectPermission)

Removes a permission from the permission set.

System_CAPS_pubmethodSystem_CAPS_staticSubtract(ObjectPermissionSet, ObjectPermission)

Creates an object permission set by performing a subtraction operation on an IObjectPermission object and an ObjectPermissionSet object.

System_CAPS_pubmethodToString()

Returns the string value that represents the specified PermissionSetBase object.(Inherited from PermissionSetBase.)

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticAddition(ObjectPermissionSet, ObjectPermission)

Creates an object permission set by performing an addition operation on an ObjectPermission object and an ObjectPermissionSet object.

System_CAPS_puboperatorSystem_CAPS_staticEquality(ObjectPermissionSet, ObjectPermissionSet)

Determines whether two objects are equal by performing an equality operation on two ObjectPermissionSet objects.

System_CAPS_puboperatorSystem_CAPS_staticInequality(ObjectPermissionSet, ObjectPermissionSet)

Determines whether two objects are unequal by performing an inequality operation on two ObjectPermissionSet objects.

System_CAPS_puboperatorSystem_CAPS_staticSubtraction(ObjectPermissionSet, ObjectPermission)

Creates an object permission set by performing a subtraction operation on an IObjectPermission object and an ObjectPermissionSet object.

Object permissions are required when granting, denying, or revoking permissions on an object. The ObjectPermissionSet object is required to specify the set of permissions that apply to the Grant method, the Deny method, and the Revoke method of the object.

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.

Return to top
Show: