AdoUser:SetPermissions()

<< Click to Display Table of Contents >>

Navigation:  Adox Classes > AdoUser Class >

AdoUser:SetPermissions()

Previous pageReturn to chapter overviewNext page

Purpose

Sets the permissions on an object or object container

 

Prototype

METHOD SetPermissions ( cName AS USUAL, nObjectType AS LONG, nAction AS LONG,   nRights AS LONG, 

nInherit AS USUAL, nObjectTypeId AS USUAL  )  AS VOID 

 

Argument(s)

cName        A Usual value specifying the name of the object for which to set permissions.

nObjectType        A Long value which can be one of the ObjectTypeEnum constants

nAction        A Long value which can be one of the ActionEnum constants, specifying the type of action to perform when setting permissions

nRights        A Long value which can be a bitmask of one or more of the RightsEnum constants, indicating the rights to set

nInherit        A Long value which can be one of the InheritTypeEnum constants, specifying how objects will inherit these permissions. The default value is adInheritNone

nObjectTypeId        (Optional). A Variant value specifying the GUID for a provider object type not defined by the OLE DB specification. This parameter is required if        ObjectType is set to adPermObjProviderSpecific; otherwise, it is not used

 

 

See Also

AdoUser, AdoObjectTypeEnum, AdoActionEnum, AdoRightsEnum, AdoInheritTypeEnum