IDatabasePermission Interface
Represents a SQL Server database permission.
Namespace: Microsoft.SqlServer.Management.SqlParser.Metadata
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
Syntax
'Declaration
Public Interface IDatabasePermission _
Inherits IMetadataObject
'Usage
Dim instance As IDatabasePermission
public interface IDatabasePermission : IMetadataObject
public interface class IDatabasePermission : IMetadataObject
type IDatabasePermission =
interface
interface IMetadataObject
end
public interface IDatabasePermission extends IMetadataObject
The IDatabasePermission type exposes the following members.
Properties
Name | Description | |
---|---|---|
DatabasePrincipal | Gets the IDatabasePrincipal object that has the permission. | |
Grantor | Gets the database principal who granted or denied access to the target object. | |
Name | Gets the name of the metadata object. (Inherited from IMetadataObject.) | |
PermissionState | Gets the permission state of the target object to which the permission applies, such as whether the permission is granted, denied, granted with grant, or revoked. | |
PermissionType | Gets the type of permission. | |
TargetObject | Gets the target object of the permission. |
Top
Methods
Name | Description | |
---|---|---|
Accept<T> | Accepts a visit from the specified IMetadataObjectVisitor<T> object. (Inherited from IMetadataObject.) |
Top