Given a list of workgroups to which the current user is assigned, this method returns an array of booleans indicating if the user is activated in the workgroup.

Namespace: ININ.IceLib.People
Assembly: ININ.IceLib.People (in ININ.IceLib.People.dll) Version: 0.0.0.0 (22.3.0.218)

Syntax

C#
public static ReadOnlyCollection<bool> GetUserWorkgroupActivations(
	PeopleManager peopleManager,
	ICollection<string> workgroups
)
Visual Basic
Public Shared Function GetUserWorkgroupActivations ( _
	peopleManager As PeopleManager, _
	workgroups As ICollection(Of String) _
) As ReadOnlyCollection(Of Boolean)

Parameters

peopleManager
Type: ININ.IceLib.People..::..PeopleManager
The PeopleManager instance.
workgroups
Type: System.Collections.Generic..::..ICollection<(Of <(<'String>)>)>
The ReadOnlyCollection<(Of <(<'T>)>)> of workgroups to which the user is assigned.

Return Value

A ReadOnlyCollection<(Of <(<'T>)>)> of workgroup activation flags.

Remarks

Note
This method call will result in a call to the server. This call can potentially time out, and caution should be taken to ensure that this call is made as few times as possible.

Exceptions

ExceptionCondition
ININ.IceLib.Connection..::..RequestTimeoutExceptionThe request timed out while waiting for a response.
ININ.IceLib.Connection..::..SessionDisconnectedExceptionThe Session does not have a valid connection.
System..::..ObjectDisposedExceptionThe Session has been disposed.

Version Information

Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 GA and beyond.
For 3.0, supported for IC Server version 3.0 GA and beyond.

See Also