[This is preliminary documentation and is subject to change.]

Demote the access for the user, Use the access level as true if you do not want demote an access (e.g. accessRead)

Namespace:  OfficeClip.DBLayer.Security
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public void DemoteUsers(
	BusinessConstants..::.ObjectType oType,
	int objectId,
	int userId,
	int groupId,
	bool accessRead,
	bool accessWrite,
	bool accessAppend,
	bool accessDelete,
	int currentUserId
)
Visual Basic (Declaration)
Public Sub DemoteUsers ( _
	oType As BusinessConstants..::.ObjectType, _
	objectId As Integer, _
	userId As Integer, _
	groupId As Integer, _
	accessRead As Boolean, _
	accessWrite As Boolean, _
	accessAppend As Boolean, _
	accessDelete As Boolean, _
	currentUserId As Integer _
)
Visual C++
public:
void DemoteUsers(
	BusinessConstants..::.ObjectType oType, 
	int objectId, 
	int userId, 
	int groupId, 
	bool accessRead, 
	bool accessWrite, 
	bool accessAppend, 
	bool accessDelete, 
	int currentUserId
)

Parameters

oType
Type: OfficeClip.BusinessLayer..::.BusinessConstants..::.ObjectType
objectId
Type: System..::.Int32
userId
Type: System..::.Int32
groupId
Type: System..::.Int32
accessRead
Type: System..::.Boolean
accessWrite
Type: System..::.Boolean
accessAppend
Type: System..::.Boolean
accessDelete
Type: System..::.Boolean
currentUserId
Type: System..::.Int32
The unique id of the current user

See Also