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
公共属性静态成员 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)
公共运算符静态成员 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

此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。 不保证所有实例成员都对于线程安全的。

线程安全

此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。