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.

命名空间:  Microsoft.SqlServer.Management.Smo
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
Public ReadOnly Property PermissionState As PermissionState 
    Get
用法
Dim instance As PermissionInfo 
Dim value As PermissionState 

value = instance.PermissionState
public PermissionState PermissionState { get; }
public:
property PermissionState PermissionState {
    PermissionState get ();
}
member PermissionState : PermissionState
function get PermissionState () : PermissionState

属性值

类型:Microsoft.SqlServer.Management.Smo.PermissionState
A PermissionState object value that specifies the permission state of the object.

示例

授予、撤消和拒绝权限

请参阅

参考

PermissionInfo 类

Microsoft.SqlServer.Management.Smo 命名空间

其他资源

权限(数据库引擎)

sys.syspermissions (Transact-SQL)