The DatabasePermissionInfo object represents information about a SQL Server database permission.
继承层次结构
System.Object
Microsoft.SqlServer.Management.Smo.PermissionInfo
Microsoft.SqlServer.Management.Smo.DatabasePermissionInfo
命名空间: Microsoft.SqlServer.Management.Smo
程序集: Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)
语法
声明
Public Class DatabasePermissionInfo _
Inherits PermissionInfo
用法
Dim instance As DatabasePermissionInfo
public class DatabasePermissionInfo : PermissionInfo
public ref class DatabasePermissionInfo : public PermissionInfo
type DatabasePermissionInfo =
class
inherit PermissionInfo
end
public class DatabasePermissionInfo extends PermissionInfo
DatabasePermissionInfo 类型公开以下成员。
构造函数
| 名称 | 说明 | |
|---|---|---|
![]() |
DatabasePermissionInfo | Initializes a new instance of the DatabasePermissionInfo 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 DatabasePermissionInfo class is served by the EnumDatabasePermissions method.
Thread Safety
此类型的任何公共静态(Microsoft Visual Basic 中的 Shared)成员在多线程操作中是安全的。但不保证所有实例成员都是线程安全的。
示例
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。
请参阅
参考
Microsoft.SqlServer.Management.Smo 命名空间
.gif)
.gif)
.gif)
.gif)