IPermissionFactory.CreateDatabasePermission 메서드

Creates a permission object that is given to the specified database principal.

네임스페이스:  Microsoft.SqlServer.Management.SqlParser.MetadataProvider
어셈블리:  Microsoft.SqlServer.Management.SqlParser(Microsoft.SqlServer.Management.SqlParser.dll)

IDatabasePermission CreateDatabasePermission(
	IDatabasePrincipal databasePrincipal,
	IMetadataObject targetObject,
	DatabasePermissionType permissionType,
	IDatabasePrincipal grantor
)

매개 변수

databasePrincipal
유형: Microsoft.SqlServer.Management.SqlParser.Metadata.IDatabasePrincipal
The object that is given the permission.
targetObject
유형: Microsoft.SqlServer.Management.SqlParser.Metadata.IMetadataObject
The object that is the target of the permission.
permissionType
유형: Microsoft.SqlServer.Management.SqlParser.Metadata.DatabasePermissionType
The value specifying the type of the permission.
grantor
유형: Microsoft.SqlServer.Management.SqlParser.Metadata.IDatabasePrincipal
The object that grants permission to the target object.

커뮤니티 추가 항목

추가
표시: