Show / Hide Table of Contents

Method CreateForItemsOfTypes

CreateForItemsOfTypes(IEnumerable<PortalItemType>, string?, string?)

Creates a PortalGroupContentSearchParameters that will find items with a particular type.

Declaration
public static PortalGroupContentSearchParameters CreateForItemsOfTypes(IEnumerable<PortalItemType> types, string? owner = null, string? search = null)
Parameters
Type Name Description
IEnumerable<PortalItemType> types

A list of one or more item types to search for.

string owner

Username of the owner of the items; or null to search for items with any owner.

string search

An optional string specifying additional criteria for the search; can be null.

Returns
Type Description
PortalGroupContentSearchParameters

A PortalGroupContentSearchParameters with a configured Query.

Remarks

Optionally restricts the search to items belonging to a specified owner. An optional search string can be used to restrict the search even further.

Exceptions
Type Condition
ArgumentNullException

types is null.

ArgumentException

types contains an unknown or unsupported type.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.8 - 200.8
.NET100.13 - 300.0
.NET Windows100.13 - 300.0
.NET Android200.2 - 300.0
.NET iOS200.0 - 300.0
.NET Framework100.8 - 200.8
Xamarin.Android100.8 - 100.14
Xamarin.iOS100.8 - 100.15
UWP100.8 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.