Export (0) Print
Expand All

DatabasePermissionSet.Add Method (DatabasePermission)

Returns a database permission set after adding a new a database permission to the referenced permission set.

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

public DatabasePermissionSet Add(
	DatabasePermission permission
)

Parameters

permission
Type: Microsoft.SqlServer.Management.Smo.DatabasePermission
A DatabasePermission object that specifies the permission to add.

Return Value

Type: Microsoft.SqlServer.Management.Smo.DatabasePermissionSet
A DatabasePermissionSet object that includes the new permission.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft