IDatabasePrincipal Interface

Represents a SQL Server database-level principal object.

Namespace:  Microsoft.SqlServer.Management.SqlParser.Metadata
Assembly:  Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)

Syntax

'Declaration
Public Interface IDatabasePrincipal _
    Inherits IDatabaseOwnedObject, IDatabaseObject, IMetadataObject
'Usage
Dim instance As IDatabasePrincipal
public interface IDatabasePrincipal : IDatabaseOwnedObject, 
    IDatabaseObject, IMetadataObject
public interface class IDatabasePrincipal : IDatabaseOwnedObject, 
    IDatabaseObject, IMetadataObject
type IDatabasePrincipal =  
    interface 
        interface IDatabaseOwnedObject 
        interface IDatabaseObject 
        interface IMetadataObject 
    end
public interface IDatabasePrincipal extends IDatabaseOwnedObject, IDatabaseObject, IMetadataObject

The IDatabasePrincipal type exposes the following members.

Properties

  Name Description
Public property Database Gets the IDatabase object that owns this object. (Inherited from IDatabaseOwnedObject.)
Public property IsSystemObject Gets a value that indicates whether this is a system object. (Inherited from IDatabaseObject.)
Public property MemberOfRoles Gets a collection of database roles this principal is a member of.
Public property Name Gets the name of the metadata object. (Inherited from IMetadataObject.)
Public property Parent Gets the IDatabaseObject object that is the parent of this object. (Inherited from IDatabaseObject.)
Public property Permissions Gets a collection of permissions granted or denied to this principal.

Top

Methods

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

Top

See Also

Reference

Microsoft.SqlServer.Management.SqlParser.Metadata Namespace