Share via


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
Public property DatabasePrincipal Gets the IDatabasePrincipal object that has the permission.
Public property Grantor Gets the database principal who granted or denied access to the target object.
Public property Name Gets the name of the metadata object. (Inherited from IMetadataObject.)
Public property 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.
Public property PermissionType Gets the type of permission.
Public property TargetObject Gets the target object of the permission.

Top

Methods

  Name Description
Public method Accept<T> Accepts a visit from the specified IMetadataObjectVisitor<T> object. (Inherited from IMetadataObject.)

Top

See Also

Reference

Microsoft.SqlServer.Management.SqlParser.Metadata Namespace