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 |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |
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 |
|
System.ArgumentException |
|
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.14 - 200.6 |
.NET | 100.14 - 200.6 |
.NET Windows | 100.14 - 200.6 |
.NET Android | 200.2 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.14 - 200.6 |
Xamarin.Android | 100.14 |
Xamarin.iOS | 100.14 - 100.15 |
UWP | 100.14 - 200.6 |