Show / Hide Table of Contents

Constructor CertificateCredential

CertificateCredential(Uri, X509Certificate)

Initializes a new instance of the CertificateCredential class for the specified service with the specified client certificate.

Declaration
public CertificateCredential(Uri serviceUri, X509Certificate clientCertificate)
Parameters
Type Name Description
System.Uri serviceUri

The service that can be accessed with this credential.

System.Security.Cryptography.X509Certificates.X509Certificate clientCertificate

The client certificate.

Exceptions
Type Condition
System.ArgumentNullException

serviceUri or clientCertificate is null.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.7
.NET100.14 - 200.7
.NET Windows100.14 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.14 - 200.7
Xamarin.Android100.14
Xamarin.iOS100.14 - 100.15
UWP100.14 - 200.7

CertificateCredential(String, X509Certificate)

Initializes a new instance of the CertificateCredential class for the specified service with the specified client certificate.

Declaration
public CertificateCredential(string serviceUrl, X509Certificate clientCertificate)
Parameters
Type Name Description
System.String serviceUrl

The service that can be accessed with this credential.

System.Security.Cryptography.X509Certificates.X509Certificate clientCertificate

The client certificate.

Exceptions
Type Condition
System.ArgumentNullException

serviceUrl or clientCertificate is null.

System.ArgumentException

serviceUrl is not a valid URI.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.14 - 200.7
.NET100.14 - 200.7
.NET Windows100.14 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.14 - 200.7
Xamarin.Android100.14
Xamarin.iOS100.14 - 100.15
UWP100.14 - 200.7
In This Article
Back to top Copyright © 2022 Esri.