Method CreateAsync
CreateAsync(OAuthUserConfiguration, CancellationToken)
Creates an OAuthUserCredential with information needed to access an ArcGIS resource. This initiates the OAuth login process by invoking the OAuthAuthorizeHandler.
Declaration
public static Task<OAuthUserCredential> CreateAsync(OAuthUserConfiguration configuration, CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
OAuthUserConfiguration | configuration | The OAuth configuration details of an application that can sign into an ArcGIS Online or ArcGIS Enterprise portal using OAuth. |
System.Threading.CancellationToken | cancellationToken | Optional cancellation token. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<OAuthUserCredential> | A task that represents the asynchronous creation operation. The value of the task result is an OAuthUserCredential. |
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 200.6 |
.NET | 200.6 |
.NET Windows | 200.6 |
.NET Android | 200.6 |
.NET iOS | 200.6 |
.NET Framework | 200.6 |
UWP | 200.6 |