[This is preliminary documentation and is subject to change.]
Removes a member from all possible groups where this user is a member of.
The input to this method can be a registered or unregistered member of OfficeClip.
Namespace:
OfficeClip.DBLayer.AccountAssembly: OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0
Syntax
C# |
---|
public int RemoveMemberFromAllGroups( int userId, int currentUserId ) |
Visual Basic (Declaration) |
---|
Public Function RemoveMemberFromAllGroups ( _ userId As Integer, _ currentUserId As Integer _ ) As Integer |
Visual C++ |
---|
public: int RemoveMemberFromAllGroups( int userId, int currentUserId ) |
Parameters
- userId
- Type: System..::.Int32
Id of the user.
- currentUserId
- Type: System..::.Int32
The current user id, can be -1 if currentUserId is not available
Return Value
0 if successful or group id of the group where this user is the only admin and hence can not be removed, -1 if there is any other system failure, -2 if there was a failure in sending the email to the user. OfficeClip.BusinessLayer.Framework..::.PropertyInfo
Remarks
If the user is an only admin in any one single group, this whole operation will fail.