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


Класс ServerPermission

The ServerPermission object represents a SQL Server server-level permission.

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

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

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

Синтаксис

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

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

Свойства

  Имя Описание
Открытое свойствоСтатический элемент AdministerBulkOperations Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент AlterAnyConnection Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент AlterAnyCredential Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент AlterAnyDatabase Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент AlterAnyEndpoint Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент AlterAnyEventNotification Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент AlterAnyLinkedServer Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент AlterAnyLogin Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент AlterAnyServerAudit Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент AlterResources Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент AlterServerState Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент AlterSettings Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент AlterTrace Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент AuthenticateServer Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент ConnectSql Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент ControlServer Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент CreateAnyDatabase Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент CreateDdlEventNotification Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент CreateEndpoint Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент CreateTraceEventNotification Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент ExternalAccessAssembly Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент Shutdown Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент UnsafeAssembly Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент ViewAnyDatabase Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент ViewAnyDefinition Gets a permission that can be included in the server permission set.
Открытое свойствоСтатический элемент ViewServerState Gets a permission that can be included in the server permission set.

В начало

Методы

  Имя Описание
Открытый методСтатический элемент Add Returns a set of server permissions after adding a new server permission to an existing set of server permissions.
Открытый методСтатический элемент BitwiseOr Combines two Server Permissions using an inclusive OR.
Открытый метод Equals Determines whether the referenced server 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.)
Открытый методСтатический элемент ToServerPermissionSet Returns a set of server permissions based on a single server permission, by converting a ServerPermission object to a ServerPermissionSet object.
Открытый метод ToString (Производный от Object.)

В начало

Операторы

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

В начало

Замечания

Server permissions are required when granting, denying, or revoking server-level permissions on an instance of SQL Server. The ServerPermission object is used to specify the set of permissions that apply to the Grant, Deny, and Revoke methods of the Server object. Also, server permissions can be added to the ServerPermissionSet object, which can also be used with the Deny, Revoke, and Grant methods.

Thread Safety

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

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

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