AddUserGroup(String,DateTime) Method
- Last UpdatedNov 06, 2025
- 1 minute read
The AddUserGroup() method takes a user group description and creates a new user group, returning the group ID. This overload of the method includes a lastEditAt DateTime parameter that can be used for optimistic concurrency control.
'Declaration
Public Overloads Shared Function AddUserGroup( _
ByVal description As String, _
ByRef LastEditAt As Date _
) As Integer
public static int AddUserGroup(
string description,
out DateTime LastEditAt
)
Parameters
- description
- Required. Holds the description to use for the new user group.
- LastEditAt
- Optional. Holds a DateTime value to avoid data contention. If it is specified, the passed value must match the lastEditAt value in the database for the update to succeed.
Return Value
Returns the ID of the new user group. Returns -1 if the group was not
added.