ArcGIS Pro 2.9 API Reference Guide
CreateForItemsOfTypes Method

ArcGIS.Desktop.Core.Portal Namespace > PortalQueryParameters Class : CreateForItemsOfTypes Method
The list of portal item types to search for.
The username of the owner. May be empty (or null).
The group Id of the portal item. May be empty (or null).
The string used for broader search on the items; such as on tags, title etc. May be empty (or null).
Returns query parameters that will find items with the specified types, group and owner.
Syntax
Public Shared Function CreateForItemsOfTypes( _
   ByVal types As IEnumerable(Of PortalItemType), _
   Optional ByVal owner As String, _
   Optional ByVal groupId As String, _
   Optional ByVal search As String _
) As PortalQueryParameters

Parameters

types
The list of portal item types to search for.
owner
The username of the owner. May be empty (or null).
groupId
The group Id of the portal item. May be empty (or null).
search
The string used for broader search on the items; such as on tags, title etc. May be empty (or null).

Return Value

Initialized portal query parameters
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

PortalQueryParameters Class
PortalQueryParameters Members