Поделиться через


Класс 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

Другие ресурсы

Разрешения (компонент Database Engine)