Compartilhar via


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)

Syntax

'Declaration
Public NotInheritable Class ObjectPermissionSet
    Inherits PermissionSetBase
public sealed class ObjectPermissionSet : PermissionSetBase
public ref class ObjectPermissionSet sealed : public PermissionSetBase
public final class ObjectPermissionSet extends PermissionSetBase
public final class ObjectPermissionSet extends PermissionSetBase

Remarks

Updated text:14 April 2006

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.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.

Inheritance Hierarchy

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

Example

How to: Grant Server Permissions in Visual Basic .NET

Thread Safety

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

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

ObjectPermissionSet Members
Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Granting, Revoking, and Denying Permissions

Change History

Release

History

14 April 2006

Changed content:
  • Added Add method overload to the ObjectPermissionSet class.

  • Added Subtract method to the ObjectPermissionSet class.

  • Descriptions of properties (permissions) have been updated.