次の方法で共有


IPermissionFactory.CreateDatabasePermission Method

Definition

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

Returns

Applies to