Jaa


ObjectPermissionSet Constructor (ObjectPermission[])

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

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

Syntax

'Declaration
Public Sub New ( _
    ParamArray permissions As ObjectPermission() _
)
public ObjectPermissionSet (
    params ObjectPermission[] permissions
)
public:
ObjectPermissionSet (
    ... array<ObjectPermission^>^ permissions
)
public ObjectPermissionSet (
    ObjectPermission[] permissions
)
public function ObjectPermissionSet (
    ... permissions : ObjectPermission[]
)

Parameters

  • permissions
    An array of ObjectPermission objects that specify the set of permissions.

Remarks

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

Example

How to: Grant Server Permissions in Visual Basic .NET

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 Class
ObjectPermissionSet Members
Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Granting, Revoking, and Denying Permissions