Show / Hide Table of Contents

Method GetFeaturedItemsAsync

GetFeaturedItemsAsync()

Gets the featured items asynchronously. This method uses the FeaturedItemsGroupQuery and returns the corresponding collection of PortalItem objects within the matching group.

Declaration
public Task<IEnumerable<PortalItem>> GetFeaturedItemsAsync()
Returns
Type Description
Task<IEnumerable<PortalItem>>

The task object representing the asynchronous search featured items operation. The value of the task result contains a collection of PortalItem objects.

Remarks

The FeaturedItemsGroupQuery is a read-only strings property in the PortalInfo.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.0 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.14
UWP100.0 - 100.14

GetFeaturedItemsAsync(CancellationToken)

Gets the featured items asynchronously. This method uses the FeaturedItemsGroupQuery and returns the corresponding collection of PortalItem objects within the matching group.

Declaration
public Task<IEnumerable<PortalItem>> GetFeaturedItemsAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
CancellationToken cancellationToken

A CancellationToken with which to cancel the operation if required.

Returns
Type Description
Task<IEnumerable<PortalItem>>

The task object representing the asynchronous search featured items operation. The value of the task result contains a collection of PortalItem objects.

Remarks

The FeaturedItemsGroupQuery is a read-only strings property in the PortalInfo.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.0 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.14
UWP100.0 - 100.14
In This Article
Back to top Copyright © 2021 Esri.