ObjectPermissionInfo 類別
The ObjectPermissionInfo object represents information about a SQL Server object permission.
繼承階層
System.Object
Microsoft.SqlServer.Management.Smo.PermissionInfo
Microsoft.SqlServer.Management.Smo.ObjectPermissionInfo
命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)
語法
'宣告
Public Class ObjectPermissionInfo _
Inherits PermissionInfo
'用途
Dim instance As ObjectPermissionInfo
public class ObjectPermissionInfo : PermissionInfo
public ref class ObjectPermissionInfo : public PermissionInfo
type ObjectPermissionInfo =
class
inherit PermissionInfo
end
public class ObjectPermissionInfo extends PermissionInfo
ObjectPermissionInfo 型別公開下列成員。
建構函式
名稱 | 說明 | |
---|---|---|
![]() |
ObjectPermissionInfo | Initializes a new instance of the ObjectPermissionInfo 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。) |
上層
備註
The ObjectPermissionInfo object is returned by the EnumObjectPermissions method. It works in a similar way to the ServerPermissionInfo object and the EnumServerPermissions method shown in the example.
Thread Safety
此型別的任何公用靜態 (在 Microsoft Visual Basic 為共用) 成員具備多執行緒作業安全。並非所有的執行個體成員都是安全執行緒。
執行緒安全性
這個型別的任何公用 static (在 Visual Basic 中為 Shared) 成員都是執行緒安全的。並不是所有的執行個體成員都保證可以用於所有的執行緒。
請參閱
參考
Microsoft.SqlServer.Management.Smo 命名空間