Show / Hide Table of Contents

Class Credential

Base class that represents a credential object used to access a secured ArcGIS resource.

Inheritance
System.Object
Credential
ArcGISCredential
ArcGISNetworkCredential
CertificateCredential
ProxyCredential
TokenCredential
Implements
System.ComponentModel.INotifyPropertyChanged
System.Runtime.Serialization.ISerializable
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Esri.ArcGISRuntime.Security
Assembly: Esri.ArcGISRuntime.dll
Syntax
[Serializable]
[KnownType(typeof(ArcGISNetworkCredential))]
[KnownType(typeof(CertificateCredential))]
[KnownType(typeof(ProxyCredential))]
[KnownType(typeof(ArcGISTokenCredential))]
[KnownType(typeof(OAuthTokenCredential))]
[KnownType(typeof(PregeneratedTokenCredential))]
[KnownType(typeof(OAuthApplicationCredential))]
[KnownType(typeof(AccessTokenCredential))]
[KnownType(typeof(OAuthUserCredential))]
[KnownType(typeof(ProxyCredential))]
public abstract class Credential : INotifyPropertyChanged, ISerializable

Properties

Name Description
ServerContext

Gets the URL by which the root of a server is accessed.

ServiceUri

Gets the URI of the service that can be accessed with this credential.

Methods

Name Description
FromJson(String)

Convert a JSON string to a Credential object.

ToJson()

Convert this Credential to a JSON string.

Events

Name Description
PropertyChanged

Occurs when a property value changes.

Name Description
ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.8
.NET100.13 - 200.8
.NET Windows100.13 - 200.8
.NET Android200.0 - 200.8
.NET iOS200.0 - 200.8
.NET Framework100.0 - 200.8
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.8

Relevant samples

Configure subnetwork trace: Get a server-defined trace configuration for a given tier and modify its traversability scope, add new condition barriers and control what is included in the subnetwork trace result.
Edit and sync features: Synchronize offline edits with a feature service.
Export tiles: Download tiles to a local tile cache file stored on the device.
In This Article
Back to top Copyright © 2022 Esri.