Click or drag to resize

PortalUserCreateAsync Method (ArcGISPortal, String, CancellationToken)

Initializes a new instance of the PortalUser class from the specified username.

Namespace:  Esri.ArcGISRuntime.Portal
Assembly:  Esri.ArcGISRuntime (in Esri.ArcGISRuntime.dll) Version: 100.7.0.0
Syntax
C#
public static Task<PortalUser> CreateAsync(
	ArcGISPortal portal,
	string username,
	CancellationToken cancellationToken
)

Parameters

portal
Type: Esri.ArcGISRuntime.PortalArcGISPortal
The ArcGIS portal.
username
Type: SystemString
Name of the user.
cancellationToken
Type: System.ThreadingCancellationToken
A CancellationToken with which to cancel the operation if required.

Return Value

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