IPermissionFactory.CreateDatabasePermission Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public Microsoft.SqlServer.Management.SqlParser.Metadata.IDatabasePermission CreateDatabasePermission (Microsoft.SqlServer.Management.SqlParser.Metadata.IDatabasePrincipal databasePrincipal, Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataObject targetObject, Microsoft.SqlServer.Management.SqlParser.Metadata.DatabasePermissionType permissionType, Microsoft.SqlServer.Management.SqlParser.Metadata.IDatabasePrincipal grantor);
abstract member CreateDatabasePermission : Microsoft.SqlServer.Management.SqlParser.Metadata.IDatabasePrincipal * Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataObject * Microsoft.SqlServer.Management.SqlParser.Metadata.DatabasePermissionType * Microsoft.SqlServer.Management.SqlParser.Metadata.IDatabasePrincipal -> Microsoft.SqlServer.Management.SqlParser.Metadata.IDatabasePermission
Public Function CreateDatabasePermission (databasePrincipal As IDatabasePrincipal, targetObject As IMetadataObject, permissionType As DatabasePermissionType, grantor As IDatabasePrincipal) As IDatabasePermission
Parameters
- databasePrincipal
- IDatabasePrincipal
- targetObject
- IMetadataObject
- permissionType
- DatabasePermissionType
- grantor
- IDatabasePrincipal