PermissionInfo.PermissionState Property

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.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public ReadOnly Property PermissionState As PermissionState 
    Get
'Usage
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

Property Value

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

Examples

Granting, Revoking, and Denying Permissions

See Also

Reference

PermissionInfo Class

Microsoft.SqlServer.Management.Smo Namespace

Other Resources

Permissions (Database Engine)

sys.syspermissions (Transact-SQL)