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.PeopleAssembly: 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
Exception | Condition |
---|---|
ININ.IceLib.Connection..::..RequestTimeoutException | The request timed out while waiting for a response. |
ININ.IceLib.Connection..::..SessionDisconnectedException | The Session does not have a valid connection. |
System..::..ObjectDisposedException | The 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.
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.