共用方式為


ServerPermissionInfo 類別

The ServerPermissionInfo object represents information about a SQL Server server-level permission.

繼承階層

System.Object
  Microsoft.SqlServer.Management.Smo.PermissionInfo
    Microsoft.SqlServer.Management.Smo.ServerPermissionInfo

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
Public Class ServerPermissionInfo _
    Inherits PermissionInfo
'用途
Dim instance As ServerPermissionInfo
public class ServerPermissionInfo : PermissionInfo
public ref class ServerPermissionInfo : public PermissionInfo
type ServerPermissionInfo =  
    class 
        inherit PermissionInfo 
    end
public class ServerPermissionInfo extends PermissionInfo

ServerPermissionInfo 型別公開下列成員。

建構函式

  名稱 說明
公用方法 ServerPermissionInfo Initializes a new instance of the ServerPermissionInfo class.

上層

屬性

  名稱 說明
公用屬性 ColumnName Gets the name of the column that has permissions granted or denied. (繼承自 PermissionInfo。)
公用屬性 Grantee Gets the name of the database user, logon, or database role who has been granted or denied access to the object. (繼承自 PermissionInfo。)
公用屬性 GranteeType Gets the type of grantee. (繼承自 PermissionInfo。)
公用屬性 Grantor Gets the name of the database user, logon, or database role who granted or denied access to the object. (繼承自 PermissionInfo。)
公用屬性 GrantorType Gets the type of grantor. (繼承自 PermissionInfo。)
公用屬性 ObjectClass Gets the object class for the object to which permissions have been granted or denied. (繼承自 PermissionInfo。)
公用屬性 ObjectID Gets the ID value that uniquely identifies the object to which the permission applies. (繼承自 PermissionInfo。)
公用屬性 ObjectName Gets the name of the object to which the permission applies. (繼承自 PermissionInfo。)
公用屬性 ObjectSchema Gets the schema of the object to which the permission applies. (繼承自 PermissionInfo。)
公用屬性 PermissionState Gets the permission state of the object to which the permission applies, such as whether the permission is granted, denied, granted with grant, or revoked. (繼承自 PermissionInfo。)
公用屬性 PermissionType Gets the type of permission.
受保護的屬性 PermissionTypeInternal 僅供參考之用。不支援。我們無法保證未來的相容性。 (繼承自 PermissionInfo。)

上層

方法

  名稱 說明
公用方法 Equals (繼承自 Object。)
受保護的方法 Finalize (繼承自 Object。)
公用方法 GetHashCode (繼承自 Object。)
公用方法 GetType (繼承自 Object。)
受保護的方法 MemberwiseClone (繼承自 Object。)
公用方法 ToString Returns the object as a String value. (繼承自 PermissionInfo。)

上層

備註

Thread Safety

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

範例

授與、撤銷和拒絕權限

執行緒安全性

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

請參閱

參考

Microsoft.SqlServer.Management.Smo 命名空間