Класс DatabasePermissionInfo
The DatabasePermissionInfo object represents information about a SQL Server database permission.
Иерархия наследования
System.Object
Microsoft.SqlServer.Management.Smo.PermissionInfo
Microsoft.SqlServer.Management.Smo.DatabasePermissionInfo
Пространство имен: Microsoft.SqlServer.Management.Smo
Сборка: Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)
Синтаксис
'Декларация
Public Class DatabasePermissionInfo _
Inherits PermissionInfo
'Применение
Dim instance As DatabasePermissionInfo
public class DatabasePermissionInfo : PermissionInfo
public ref class DatabasePermissionInfo : public PermissionInfo
type DatabasePermissionInfo =
class
inherit PermissionInfo
end
public class DatabasePermissionInfo extends PermissionInfo
Тип DatabasePermissionInfo обеспечивает доступ к следующим элементам.
Конструкторы
Имя | Описание | |
---|---|---|
![]() |
DatabasePermissionInfo | Initializes a new instance of the DatabasePermissionInfo class. |
В начало
Свойства
Имя | Описание | |
---|---|---|
![]() |
ColumnName | Gets the name of the column that has permissions granted or denied. (Производный от PermissionInfo.) |
![]() |
Grantee | Gets the name of the database user, logon, or database role who has been granted or denied access to the object. (Производный от PermissionInfo.) |
![]() |
GranteeType | Gets the type of grantee. (Производный от PermissionInfo.) |
![]() |
Grantor | Gets the name of the database user, logon, or database role who granted or denied access to the object. (Производный от PermissionInfo.) |
![]() |
GrantorType | Gets the type of grantor. (Производный от PermissionInfo.) |
![]() |
ObjectClass | Gets the object class for the object to which permissions have been granted or denied. (Производный от PermissionInfo.) |
![]() |
ObjectID | Gets the ID value that uniquely identifies the object to which the permission applies. (Производный от PermissionInfo.) |
![]() |
ObjectName | Gets the name of the object to which the permission applies. (Производный от PermissionInfo.) |
![]() |
ObjectSchema | Gets the schema of the object to which the permission applies. (Производный от PermissionInfo.) |
![]() |
PermissionState | Gets the permission state of the object to which the permission applies, such as whether the permission is granted, denied, granted with grant, or revoked. (Производный от PermissionInfo.) |
![]() |
PermissionType | Gets the type of permission. |
![]() |
PermissionTypeInternal | Указано только в ознакомительных целях. Не поддерживается. Совместимость с будущими версиями не гарантируется. (Производный от PermissionInfo.) |
В начало
Методы
Имя | Описание | |
---|---|---|
![]() |
Equals | (Производный от Object.) |
![]() |
Finalize | (Производный от Object.) |
![]() |
GetHashCode | (Производный от Object.) |
![]() |
GetType | (Производный от Object.) |
![]() |
MemberwiseClone | (Производный от Object.) |
![]() |
ToString | Returns the object as a String value. (Производный от PermissionInfo.) |
В начало
Замечания
The DatabasePermissionInfo class is served by the EnumDatabasePermissions method.
Thread Safety
Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Потокобезопасная работа с членами экземпляров типа не гарантируется.
Примеры
Предоставление, отмена и запрет разрешений
Безопасность многопоточности
Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.
См. также
Справочник
Пространство имен Microsoft.SqlServer.Management.Smo