Show / Hide Table of Contents

Method FindItemsAsync

FindItemsAsync(PortalGroupContentSearchParameters)

Finds portal items that belong to this group and match the given search parameters.

Declaration
public Task<PortalGroupContentSearchResultSet> FindItemsAsync(PortalGroupContentSearchParameters searchParams)
Parameters
Type Name Description
PortalGroupContentSearchParameters searchParams

The search parameters

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

A task that represents the asynchronous search operation. The value of the task result is a PortalGroupContentSearchResultSet that contains the PortalItem objects that were found.

Remarks

This method uses a Group Content Search operation that's designed specifically for finding items that belong to a group. It differs from the FindItemsAsync(PortalQueryParameters) method which uses a general-purpose Search operation that's suitable for searching all items stored on a portal. The behavior of this method also differs in the following ways:

  • If the Categories property is used, the categories specified there will be matched with group categories that have been specified by the group owner/administrator, as opposed to the organization-level categories that the general-purpose Search operation matches against.
  • An extra SortField option is available, "added", to sort results by the time the items were added to this group.

Applies to

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

FindItemsAsync(PortalGroupContentSearchParameters, CancellationToken)

Finds portal items that belong to this group and match the given search parameters.

Declaration
public async Task<PortalGroupContentSearchResultSet> FindItemsAsync(PortalGroupContentSearchParameters searchParams, CancellationToken cancellationToken)
Parameters
Type Name Description
PortalGroupContentSearchParameters searchParams

The search parameters

System.Threading.CancellationToken cancellationToken

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

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

A task that represents the asynchronous search operation. The value of the task result is a PortalGroupContentSearchResultSet that contains the PortalItem objects that were found.

Remarks

This method uses a Group Content Search operation that's designed specifically for finding items that belong to a group. It differs from the FindItemsAsync(PortalQueryParameters) method which uses a general-purpose Search operation that's suitable for searching all items stored on a portal. The behavior of this method also differs in the following ways:

  • If the Categories property is used, the categories specified there will be matched with group categories that have been specified by the group owner/administrator, as opposed to the organization-level categories that the general-purpose Search operation matches against.
  • An extra SortField option is available, "added", to sort results by the time the items were added to this group.

Applies to

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