Show / Hide Table of Contents

Method CreateForItemsOfType

CreateForItemsOfType(PortalItemType, string?, string?)

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

Declaration
public static PortalGroupContentSearchParameters CreateForItemsOfType(PortalItemType type, string? owner = null, string? search = null)
Parameters
Type Name Description
PortalItemType type

The item type 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
ArgumentException

type is unknown or unsupported.

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.