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
string json

The JSON string.

Returns
Type Description
Credential

The credential object, which could be one of:

  • ArcGISNetworkCredential
  • CertificateCredential
  • ProxyCredential
  • PregeneratedTokenCredential
  • OAuthApplicationCredential
  • OAuthUserCredential
  • AccessTokenCredential
  • IapCredential
Exceptions
Type Condition
SerializationException

The given JSON string is invalid or incomplete.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0200.5 - 200.8
.NET200.5 - 300.0
.NET Windows200.5 - 300.0
.NET Android200.5 - 300.0
.NET iOS200.5 - 300.0
.NET Framework200.5 - 200.8
UWP200.5 - 200.8
In this article
Provide feedback
Back to top Copyright © 2025 Esri.