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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.0 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |
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
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.5 |
.NET | 100.13 - 200.5 |
.NET Windows | 100.13 - 200.5 |
.NET Android | 200.2 - 200.5 |
.NET iOS | 200.0 - 200.5 |
.NET Framework | 100.0 - 200.5 |
Xamarin.Android | 100.0 - 100.14 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.5 |