ArcGIS Pro 2.9 API Reference Guide
CreateForItemsOfType Method

ArcGIS.Desktop.Core.Portal Namespace > PortalQueryParameters Class : CreateForItemsOfType Method
The type of the portal item.
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 a specified type.
Syntax
public static PortalQueryParameters CreateForItemsOfType( 
   PortalItemType type,
   string search
)
Public Shared Function CreateForItemsOfType( _
   ByVal type As PortalItemType, _
   Optional ByVal search As String _
) As PortalQueryParameters

Parameters

type
The type of the portal item.
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