Retrieves the list of workgroups to which a user is assigned.

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

Collapse imageSyntax

C#
public static ReadOnlyCollection<string> GetUserWorkgroups(
	PeopleManager peopleManager
)
Visual Basic
Public Shared Function GetUserWorkgroups ( _
	peopleManager As PeopleManager _
) As ReadOnlyCollection(Of String)

Parameters

peopleManager
Type: ININ.IceLib.People..::..PeopleManager
An instance of PeopleManager.

Return Value

A ReadOnlyCollection<(Of <(<'T>)>)> containing the workgroups to which the current user is a assigned.

Collapse imageRemarks

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.

Collapse imageExceptions

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.

Collapse imageVersion 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.

Collapse imageSee Also