Show / Hide Table of Contents

Property Categories

Categories

Gets a list of content category specifications to use when searching for items.

Declaration
public IList<string> Categories { get; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

A list of content category specifications to use when searching for items.

Remarks

Each entry in the list is a string containing a comma-separated list of up to 8 content categories. The exact full path of each category is required, and an OR relationship is applied between the categories within a particular string.

There can be up to 8 strings with an AND relationship being applied between the different strings.

For example, to search for items belonging to either the Water or Forest categories, both within the US, specify 2 Strings as follows: "/Categories/Water,/Categories/Forest" and "/Region/US".

The categories property is ignored if the PortalQueryParameters is used to search for groups using FindGroupsAsync(PortalQueryParameters).

See Also
FindItemsAsync(PortalQueryParameters)

Applies to

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