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

Removes the user related data from the database. It will Remove the user record if there is no group specific data created by the user. If the user has created group related data, then the user record will not be deleted.

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

Syntax

C#
public int RemoveUserData(
	int userId,
	int groupId
)
Visual Basic (Declaration)
Public Function RemoveUserData ( _
	userId As Integer, _
	groupId As Integer _
) As Integer
Visual C++
public:
int RemoveUserData(
	int userId, 
	int groupId
)

Parameters

userId
Type: System..::.Int32
The id of the user whose data is to be removed from the system.
groupId
Type: System..::.Int32
The unique id of the ogranization

Return Value

0 - if removal successful -1 - if the user is an admin in atleast one of the groups where he/she belongs.

See Also