ArcGIS Pro 2.9 API Reference Guide
CanSearchPublic Property

ArcGIS.Desktop.Core.Portal Namespace > PortalInfo Class : CanSearchPublic Property
Gets a value indicating if public items, groups, and users are included in search queries on the portal. If the user is NOT signed on true (the default) is always returned.
Syntax
public bool CanSearchPublic {get;}
Public ReadOnly Property CanSearchPublic As Boolean
Remarks
When CanSearchPublic is false, no public items outside of the organization are included in searches. However, public items that are part of the organization are returned.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

PortalInfo Class
PortalInfo Members