ToDatabasePermissionSet Method
Collapse the table of content
Expand the table of content

DatabasePermission.ToDatabasePermissionSet Method (DatabasePermission)

 

Returns a set of database permissions, based on a single database permission, by converting a DatabasePermission object to a DatabasePermissionSet object.

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

public static DatabasePermissionSet ToDatabasePermissionSet(
	DatabasePermission permission
)

Parameters

permission
Type: Microsoft.SqlServer.Management.Smo.DatabasePermission

A DatabasePermission object that specifies the database permission.

Return Value

Type: Microsoft.SqlServer.Management.Smo.DatabasePermissionSet

A DatabasePermissionSet object that specifies a single server permission.

Return to top
Show:
© 2016 Microsoft