Export (0) Print
Expand All

ObjectPermissionInfo Class

The ObjectPermissionInfo object represents information about a SQL Server object permission.

Object
  Microsoft.SqlServer.Management.Smo::PermissionInfo
    Microsoft.SqlServer.Management.Smo::ObjectPermissionInfo

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

public ref class ObjectPermissionInfo : public PermissionInfo

The ObjectPermissionInfo type exposes the following members.

  NameDescription
Public methodObjectPermissionInfoInitializes a new instance of the ObjectPermissionInfo class.
Top

  NameDescription
Public propertyColumnNameGets the name of the column that has permissions granted or denied. (Inherited from PermissionInfo.)
Public propertyGranteeGets the name of the database user, logon, or database role who has been granted or denied access to the object. (Inherited from PermissionInfo.)
Public propertyGranteeTypeGets the type of grantee. (Inherited from PermissionInfo.)
Public propertyGrantorGets the name of the database user, logon, or database role who granted or denied access to the object. (Inherited from PermissionInfo.)
Public propertyGrantorTypeGets the type of grantor. (Inherited from PermissionInfo.)
Public propertyObjectClassGets the object class for the object to which permissions have been granted or denied. (Inherited from PermissionInfo.)
Public propertyObjectIDGets the ID value that uniquely identifies the object to which the permission applies. (Inherited from PermissionInfo.)
Public propertyObjectNameGets the name of the object to which the permission applies. (Inherited from PermissionInfo.)
Public propertyObjectSchemaGets the schema of the object to which the permission applies. (Inherited from PermissionInfo.)
Public propertyPermissionStateGets 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.)
Public propertyPermissionTypeGets the type of permission.
Protected propertyPermissionTypeInternalIdentified for informational purposes only. Not supported. Future compatibility is not guaranteed. (Inherited from PermissionInfo.)
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToStringReturns the object as a String value. (Inherited from PermissionInfo.)
Top

The ObjectPermissionInfo object is returned by the EnumObjectPermissions method. It works in a similar way to the ServerPermissionInfo object and the EnumServerPermissions method shown in the example.

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.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft