IDatabasePrincipal Interface
SQL Server 2012
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)
The IDatabasePrincipal type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Database | Gets the IDatabase object that owns this object. (Inherited from IDatabaseOwnedObject.) |
![]() | IsSystemObject | Gets a value that indicates whether this is a system object. (Inherited from IDatabaseObject.) |
![]() | MemberOfRoles | Gets a collection of database roles this principal is a member of. |
![]() | Name | Gets the name of the metadata object. (Inherited from IMetadataObject.) |
![]() | Parent | Gets the IDatabaseObject object that is the parent of this object. (Inherited from IDatabaseObject.) |
![]() | Permissions | Gets a collection of permissions granted or denied to this principal. |
| Name | Description | |
|---|---|---|
![]() | Accept<T>(IDatabaseObjectVisitor<T>) | Accepts a visit from the specified IDatabaseObjectVisitor<T> object. (Inherited from IDatabaseObject.) |
![]() | Accept<T>(IDatabaseOwnedObjectVisitor<T>) | Accepts a visit from the specified IDatabaseOwnedObjectVisitor<T> object. (Inherited from IDatabaseOwnedObject.) |
![]() | Accept<T>(IMetadataObjectVisitor<T>) | Accepts a visit from the specified IMetadataObjectVisitor<T> object. (Inherited from IMetadataObject.) |

