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

Inserts a new role to a particular group.

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

Syntax

C#
public int InsertRole(
	int groupId,
	int userId,
	string roleName,
	string description
)
Visual Basic (Declaration)
Public Function InsertRole ( _
	groupId As Integer, _
	userId As Integer, _
	roleName As String, _
	description As String _
) As Integer
Visual C++
public:
int InsertRole(
	int groupId, 
	int userId, 
	String^ roleName, 
	String^ description
)

Parameters

groupId
Type: System..::.Int32
The unique id of the group where the role name is to be inserted
userId
Type: System..::.Int32
The unique id of the current logged in user
roleName
Type: System..::.String
The name of the role
description
Type: System..::.String
The description of the role

Return Value

roleId if successful and -1 if there is an error and -2 if another role with the same name already exists.

See Also