Share via


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

此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。不保證所有執行個體成員都是安全執行緒。

執行緒安全性

這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。