Show / Hide Table of Contents

Class ArcGISPortal

The ArcGISPortal class is part of the Portal API which provides a way to build applications that work with content from ArcGIS Online or an ArcGIS Portal.

Inheritance
Object
ArcGISPortal
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.Portal
Assembly: Esri.ArcGISRuntime.dll
Syntax
public sealed class ArcGISPortal
Remarks

ArcGIS Portal is software technology from Esri that customers can deploy either on premise or in the cloud. ArcGIS Online is Esri's Software as a Service offering that represents GIS as a Service and is implemented using the same technology as ArcGIS Portal. The Portal API allows application developers to work with users, groups and content hosted within ArcGIS Online or within an ArcGIS Portal. The API allows developers to build web, mobile, and desktop applications that support sharing and collaboration using web maps. Organizational developers can also use the API to build custom applications for their users. The Portal class provides the connection information to the portal (Uri, Token, ClientAppType, CultureInfo). Once instantiated by calling the static factory CreateAsync(), PortalInfo and User are available and provide information about the portal and the current user.

This class is needed to instantiate all others classes of the Portal library.

Properties

Name Description
CultureInfo

Gets the culture info used to access the portal. Must be set using the appropriate CreateAsync method. This locale might be used by the REST service to provide customized or localized content (featured groups/items etc) for different locales.

PortalInfo

Gets the PortalInfo object for this ArcGIS Portal.
This includes information such as the name, logo, featured items and supported protocols (http vs https) for this portal.

Uri

Gets the URI of the ArcGIS Portal.

User

Gets the current user. Available only to authenticated users after initialization.

Methods

Name Description
CreateAsync()

Creates asynchronously a new instance of the ArcGISPortal class that represents ArcGIS Online (i.e https://www.arcgis.com as Portal Uri).

CreateAsync(CancellationToken)

Creates asynchronously a new instance of the ArcGISPortal class that represents ArcGIS Online (i.e https://www.arcgis.com as Portal Uri).

CreateAsync(Uri)

Creates asynchronously a new instance of the ArcGISPortal class from the specified portal Uri. If the URI is null, ArcGIS Online is used by default (https://www.arcgis.com).

CreateAsync(Uri, Boolean)

Creates asynchronously a new instance of the ArcGISPortal class. If the URI is null, ArcGIS Online is used by default (https://www.arcgis.com).

CreateAsync(Uri, Boolean, CultureInfo)

Creates asynchronously a new instance of the ArcGISPortal class. If the URI is null, ArcGIS Online is used by default (https://www.arcgis.com).

CreateAsync(Uri, Boolean, CultureInfo, CancellationToken)

Creates asynchronously a new instance of the ArcGISPortal class. If the URI is null, ArcGIS Online is used by default (https://www.arcgis.com).

CreateAsync(Uri, Boolean, CancellationToken)

Creates asynchronously a new instance of the ArcGISPortal class. If the URI is null, ArcGIS Online is used by default (https://www.arcgis.com).

CreateAsync(Uri, CultureInfo)

Creates asynchronously a new instance of the ArcGISPortal class from the specified portal Uri. If the URI is null, ArcGIS Online is used by default (https://www.arcgis.com).

CreateAsync(Uri, CultureInfo, CancellationToken)

Creates asynchronously a new instance of the ArcGISPortal class from the specified portal Uri. If the URI is null, ArcGIS Online is used by default (https://www.arcgis.com).

CreateAsync(Uri, CancellationToken)

Creates asynchronously a new instance of the ArcGISPortal class from the specified portal Uri. If the URI is null, ArcGIS Online is used by default (https://www.arcgis.com).

FindGroupsAsync(PortalQueryParameters)

Finds portal groups from a query string.

FindGroupsAsync(PortalQueryParameters, CancellationToken)

Finds portal groups that match the query parameters specified.

FindItemsAsync(PortalQueryParameters)

Finds portal items that match the query parameters specified.

FindItemsAsync(PortalQueryParameters, CancellationToken)

Finds portal items that match the query parameters specified

FindUsersAsync(PortalQueryParameters)

Finds portal users that match the query parameters specified.

FindUsersAsync(PortalQueryParameters, CancellationToken)

Finds portal users that match the query parameters specified.

GetBasemapsAsync()

Executes a portal query with the BasemapGalleryGroupQuery query string and returns the resulting collection of Basemap objects.

GetBasemapsAsync(CancellationToken)

Executes a portal query with the BasemapGalleryGroupQuery query string and returns the resulting collection of Basemap objects.

GetDeveloperBasemapsAsync()

Executes a portal query to fetch the developer basemaps for this portal.

GetDeveloperBasemapsAsync(CancellationToken)

Executes a portal query to fetch the developer basemaps for this portal.

GetFeaturedGroupsAsync()

Gets the featured groups for the organization. This method uses the FeaturedGroupsQueries and returns the corresponding collection of PortalGroup.

GetFeaturedGroupsAsync(CancellationToken)

Gets the featured groups for the organization. This method uses the FeaturedGroupsQueries and returns the corresponding collection of PortalGroup.

GetFeaturedItemsAsync()

Gets the featured items asynchronously. This method uses the FeaturedItemsGroupQuery and returns the corresponding collection of PortalItem objects within the matching group.

GetFeaturedItemsAsync(CancellationToken)

Gets the featured items asynchronously. This method uses the FeaturedItemsGroupQuery and returns the corresponding collection of PortalItem objects within the matching group.

GetHomePageFeaturedContentAsync()

Searches the home page featured content asynchronously. This method uses the HomePageFeaturedContentGroupQuery and returns the corresponding PortalItem collection.

GetHomePageFeaturedContentAsync(CancellationToken)

Searches the home page featured content asynchronously. This method uses the HomePageFeaturedContentGroupQuery and returns the corresponding PortalItem collection.

GetLicenseInfoAsync()

Executes a portal query that gets the current user's License Info including the entitlements and extensions.

GetLoginTypeForUriAsync(Uri)

Retrieves the PortalLoginType for the specified portal Uri.

GetLoginTypeForUriAsync(Uri, CancellationToken)

Retrieves the PortalLoginType for the specified portal Uri.

GetStylesAsync()

Executes a portal query with the StylesGroupQuery query string.

GetStylesAsync(CancellationToken)

Executes a portal query with the StylesGroupQuery query string.

GetSymbolSetsAsync()

Executes a portal query with the SymbolSetsGroupQuery query string.

GetSymbolSetsAsync(CancellationToken)

Executes a portal query with the SymbolSetsGroupQuery query string.

GetVectorBasemapsAsync()

Executes a portal query with the VectorBasemapGalleryGroupQuery query string and returns the resulting collection of Basemap objects.

GetVectorBasemapsAsync(CancellationToken)

Executes a portal query with the VectorBasemapGalleryGroupQuery query string and returns the resulting collection of Basemap objects.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 100.14
.NET 6.0100.13 - 100.14
.NET 6.0 Windows100.13 - 100.14
.NET Framework100.0 - 100.14
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.14
UWP100.0 - 100.14

Relevant samples

Access load status: Determine the map's load status which can be `NotLoaded`, `FailedToLoad`, `Loading`, `Loaded`.
Add an integrated mesh layer: View an integrated mesh layer from a scene service.
Add ENC exchange set: Display nautical charts per the ENC specification.
Add features: Add features to a feature layer.
In This Article
Back to top Copyright © 2021 Esri.