Класс ObjectPermission

The ObjectPermission object represents a SQL Server object permission.

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

System. . :: . .Object
  Microsoft.SqlServer.Management.Smo..::..ObjectPermission

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

Синтаксис

'Декларация
Public NotInheritable Class ObjectPermission
'Применение
Dim instance As ObjectPermission
public sealed class ObjectPermission
public ref class ObjectPermission sealed
[<SealedAttribute>]
type ObjectPermission =  class end
public final class ObjectPermission

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

Свойства

  Имя Описание
Открытое свойствоСтатический элемент Alter Gets a permission that can be included in the object permission set.
Открытое свойствоСтатический элемент Connect Gets a permission that can be included in the object permission set.
Открытое свойствоСтатический элемент Control Gets a permission that can be included in the object permission set.
Открытое свойствоСтатический элемент Delete Gets a permission that can be included in the object permission set.
Открытое свойствоСтатический элемент Execute Gets a permission that can be included in the object permission set.
Открытое свойствоСтатический элемент Impersonate Gets a permission that can be included in the object permission set.
Открытое свойствоСтатический элемент Insert Gets a permission that can be included in the object permission set.
Открытое свойствоСтатический элемент Receive Gets a permission that can be included in the object permission set.
Открытое свойствоСтатический элемент References Gets a permission that can be included in the object permission set.
Открытое свойствоСтатический элемент Select Gets a permission that can be included in the object permission set.
Открытое свойствоСтатический элемент Send Gets a permission that can be included in the object permission set.
Открытое свойствоСтатический элемент TakeOwnership Gets a permission that can be included in the object permission set.
Открытое свойствоСтатический элемент Update Gets a permission that can be included in the object permission set.
Открытое свойствоСтатический элемент ViewChangeTracking Gets a permission that can be included in the object permission set.
Открытое свойствоСтатический элемент ViewDefinition Gets a permission that can be included in the object permission set.

В начало

Методы

  Имя Описание
Открытый методСтатический элемент Add Returns a set of object permissions after adding two object permissions.
Открытый методСтатический элемент BitwiseOr Returns an object permission set by performing a bitwise OR operation on two ObjectPermission objects.
Открытый метод Equals Determines if a ObjectPermission object is the same as the current ObjectPermission object. (Переопределяет Object. . :: . .Equals(Object).)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetHashCode This method supports the SMO infrastructure and is not intended to be used directly from your code. (Переопределяет Object. . :: . .GetHashCode() () () ().)
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый методСтатический элемент ToObjectPermissionSet Converts an object permission into an object permission set.
Открытый метод ToString (Производный от Object.)

В начало

Операторы

  Имя Описание
Открытый операторСтатический элемент Addition Creates an object permission set by performing an addition operation on two ObjectPermission objects.
Открытый операторСтатический элемент BitwiseOr Creates an object permission set by performing a bitwise OR operation on two ObjectPermission objects.
Открытый операторСтатический элемент Equality Creates an object permission set by performing an equality operation on two ObjectPermission objects.
Открытый операторСтатический элемент Implicit Widening Implicit Implicit Implicit(ObjectPermission to ObjectPermissionSet) Converts a single ObjectPermission to a ObjectPermissionSet
Открытый операторСтатический элемент Inequality Creates an object permission set by performing an inequality operation on two ObjectPermission objects.

В начало

Замечания

Object permissions are required when running granting, denying, or revoking permissions on an object. The ObjectPermission object is used to specify the set of permissions that apply to the Grant, Deny, and Revoke methods of the object. Also, object permissions can be added to the ObjectPermissionSet object, which can also be used with the Deny, Revoke, and Grant methods.

Thread Safety

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

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

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