Show / Hide Table of Contents

Method GetGroupsAsync

GetGroupsAsync()

Gets the groups that this item belongs to. Only those groups that are visible to the current portal user will be returned.

Declaration
public Task<PortalItemGroups> GetGroupsAsync()
Returns
Type Description
System.Threading.Tasks.Task<PortalItemGroups>

The task object representing the asynchronous get groups operation. The value of the task result is a PortalItemGroups object.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

GetGroupsAsync(CancellationToken)

Gets the groups the item is a part of. Only shows the groups which the calling user can access.

Declaration
public Task<PortalItemGroups> GetGroupsAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken

A System.Threading.CancellationToken with which to cancel the operation if required.

Returns
Type Description
System.Threading.Tasks.Task<PortalItemGroups>

The task object representing the asynchronous get groups operation. The value of the task result is a PortalItemGroups object.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.2 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8
In This Article
Back to top Copyright © 2022 Esri.