Show / Hide Table of Contents

Method FromJson

FromJson(String)

Convert a JSON string to a Credential object.

Declaration
public static Credential FromJson(string json)
Parameters
Type Name Description
System.String json

The JSON string.

Returns
Type Description
Credential

The credential object, which could be one of:

  • ArcGISNetworkCredential
  • ArcGISTokenCredential
  • CertificateCredential
  • OAuthTokenCredential
  • ProxyCredential
  • PregeneratedTokenCredential
  • OAuthApplicationCredential
  • OAuthUserCredential
  • AccessTokenCredential

Exceptions
Type Condition
System.Runtime.Serialization.SerializationException

The given JSON string is invalid or incomplete.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.5 - 200.8
.NET200.5 - 200.8
.NET Windows200.5 - 200.8
.NET Android200.5 - 200.8
.NET iOS200.5 - 200.8
.NET Framework200.5 - 200.8
UWP200.5 - 200.8
In This Article
Back to top Copyright © 2022 Esri.