共用方式為


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 命名空間

其他資源

權限 (Database Engine)

sys.syspermissions (Transact-SQL)