DatabasePermissionInfo DatabasePermissionInfo DatabasePermissionInfo Class

Definition

The DatabasePermissionInfo object represents information about a SQL Server database permission.

public ref class DatabasePermissionInfo : Microsoft::SqlServer::Management::Smo::PermissionInfo
public class DatabasePermissionInfo : Microsoft.SqlServer.Management.Smo.PermissionInfo
Public Class DatabasePermissionInfo
Inherits PermissionInfo
Inheritance
DatabasePermissionInfoDatabasePermissionInfoDatabasePermissionInfo

Examples

Granting, Revoking, and Denying Permissions

Remarks

The DatabasePermissionInfo class is served by the EnumDatabasePermissions method.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

Constructors

DatabasePermissionInfo() DatabasePermissionInfo() DatabasePermissionInfo()

Initializes a new instance of the DatabasePermissionInfo class.

Properties

ColumnName ColumnName ColumnName

Gets the name of the column that has permissions granted or denied.

(Inherited from PermissionInfo)
Grantee Grantee Grantee

Gets the name of the database user, logon, or database role who has been granted or denied access to the object.

(Inherited from PermissionInfo)
GranteeType GranteeType GranteeType

Gets the type of grantee.

(Inherited from PermissionInfo)
Grantor Grantor Grantor

Gets the name of the database user, logon, or database role who granted or denied access to the object.

(Inherited from PermissionInfo)
GrantorType GrantorType GrantorType

Gets the type of grantor.

(Inherited from PermissionInfo)
ObjectClass ObjectClass ObjectClass

Gets the object class for the object to which permissions have been granted or denied.

(Inherited from PermissionInfo)
ObjectID ObjectID ObjectID

Gets the ID value that uniquely identifies the object to which the permission applies.

(Inherited from PermissionInfo)
ObjectName ObjectName ObjectName

Gets the name of the object to which the permission applies.

(Inherited from PermissionInfo)
ObjectSchema ObjectSchema ObjectSchema

Gets the schema of the object to which the permission applies.

(Inherited from PermissionInfo)
PermissionState PermissionState 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.

(Inherited from PermissionInfo)
PermissionType PermissionType PermissionType

Gets the type of permission.

PermissionTypeInternal PermissionTypeInternal PermissionTypeInternal

Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.

Gets the permission type internal of the object.

(Inherited from PermissionInfo)

Methods

ToString() ToString() ToString()

Returns the object as a String value.

(Inherited from PermissionInfo)

Applies to