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


Класс ObjectPermissionInfo

The ObjectPermissionInfo object represents information about a SQL Server object permission.

Иерархия наследования

System.Object
  Microsoft.SqlServer.Management.Smo.PermissionInfo
    Microsoft.SqlServer.Management.Smo.ObjectPermissionInfo

Пространство имен:  Microsoft.SqlServer.Management.Smo
Сборка:  Microsoft.SqlServer.Smo (в Microsoft.SqlServer.Smo.dll)

Синтаксис

'Декларация
Public Class ObjectPermissionInfo _
    Inherits PermissionInfo
'Применение
Dim instance As ObjectPermissionInfo
public class ObjectPermissionInfo : PermissionInfo
public ref class ObjectPermissionInfo : public PermissionInfo
type ObjectPermissionInfo =  
    class 
        inherit PermissionInfo 
    end
public class ObjectPermissionInfo extends PermissionInfo

Тип ObjectPermissionInfo обеспечивает доступ к следующим элементам.

Конструкторы

  Имя Описание
Открытый метод ObjectPermissionInfo Initializes a new instance of the ObjectPermissionInfo 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 ObjectPermissionInfo object is returned by the EnumObjectPermissions method. It works in a similar way to the ServerPermissionInfo object and the EnumServerPermissions method shown in the example.

Thread Safety

Все общие статические члены этого типа (Shared в Microsoft Visual Basic) можно использовать в многопоточных операциях. Потокобезопасная работа с членами экземпляров типа не гарантируется.

Безопасность многопоточности

Любые открытые статический (Shared в Visual Basic) элементы этого типа потокобезопасны. Потокобезопасность с элементами экземпляров не гарантируется.

См. также

Справочник

Пространство имен Microsoft.SqlServer.Management.Smo

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

Предоставление, отмена и запрет разрешений