Класс DatabasePermission

The DatabasePermission object represents a SQL Server database permission. The database permission can be added to a database permission set, and then granted, revoked, or denied to a user.

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

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

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

Синтаксис

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

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

Свойства

  Имя Описание
Открытое свойствоСтатический элемент Alter Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyApplicationRole Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyAssembly Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyAsymmetricKey Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyCertificate Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyContract Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyDatabaseAudit Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyDatabaseDdlTrigger Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyDatabaseEventNotification Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyDataspace Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyFulltextCatalog Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyMessageType Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyRemoteServiceBinding Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyRole Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyRoute Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnySchema Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyService Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnySymmetricKey Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент AlterAnyUser Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент Authenticate Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент BackupDatabase Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент BackupLog Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент Checkpoint Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент Connect Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент ConnectReplication Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент Control Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateAggregate Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateAssembly Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateAsymmetricKey Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateCertificate Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateContract Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateDatabase Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateDatabaseDdlEventNotification Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateDefault Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateFulltextCatalog Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateFunction Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateMessageType Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateProcedure Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateQueue Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateRemoteServiceBinding Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateRole Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateRoute Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateRule Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateSchema Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateService Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateSymmetricKey Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateSynonym Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateTable Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateType Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateView Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент CreateXmlSchemaCollection Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент Delete Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент Execute Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент Insert Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент References Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент Select Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент Showplan Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент SubscribeQueryNotifications Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент TakeOwnership Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент Update Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент ViewDatabaseState Gets a permission that can be included in the database permission set.
Открытое свойствоСтатический элемент ViewDefinition Gets a permission that can be included in the database permission set.

В начало

Методы

  Имя Описание
Открытый методСтатический элемент Add Returns a set of database permissions after adding a new database permission to an existing set of database permissions.
Открытый методСтатический элемент BitwiseOr Creates a database permission set by performing a bitwise OR operation on two DatabasePermission objects.
Открытый метод Equals Determines whether the referenced database permission object is equal to a specified object. (Переопределяет Object. . :: . .Equals(Object).)
Защищенный метод Finalize (Производный от Object.)
Открытый метод GetHashCode This method supports the SQL Server infrastructure and is not intended to be used directly from your code. (Переопределяет Object. . :: . .GetHashCode() () () ().)
Открытый метод GetType (Производный от Object.)
Защищенный метод MemberwiseClone (Производный от Object.)
Открытый методСтатический элемент ToDatabasePermissionSet Returns a set of database permissions, based on a single database permission, by converting a DatabasePermission object to a DatabasePermissionSet object.
Открытый метод ToString (Производный от Object.)

В начало

Операторы

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

В начало

Замечания

Database permissions are required when running granting, denying, or revoking permissions on a database. The DatabasePermission object is used to specify the set of permissions that apply to the Grant, Deny, and Revoke methods of the Database object. Also, database permissions can be added to the DatabasePermissionSet object, which can also be used with the Grant, Deny, and Revoke methods.

Thread Safety

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

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

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