Click or drag to resize

ArcGISPortalCreateAsync Method (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).

Namespace:  Esri.ArcGISRuntime.Portal
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.7.0.0
Syntax
C#
public static Task<ArcGISPortal> CreateAsync(
	Uri portalUri,
	bool loginRequired,
	CultureInfo culture,
	CancellationToken cancellationToken
)

Parameters

portalUri
Type: SystemUri
The portal URI.
loginRequired
Type: SystemBoolean
Login required flag. Use true to force user login, false to only login if required by the portal.
culture
Type: System.GlobalizationCultureInfo
The culture for the portal.
cancellationToken
Type: System.ThreadingCancellationToken
A CancellationToken with which to cancel the operation if required.

Return Value

Type: TaskArcGISPortal
The task object representing the asynchronous create operation. The value of the task result is a ArcGISPortal object.
See Also