ValidateCertificate Method

HealthVault
Checks if the certificates are valid.

Namespace: Microsoft.Health
Assembly: Microsoft.Health (in Microsoft.Health.dll) Version: 2.1.0.0 (1.15.1003.9505)

public void ValidateCertificate()

Validates the certificates of each signature on the HealthRecordItem.

ExceptionCondition
Microsoft.Health..::..CertificateValidationException Certificate validation failed. There may be an inner exception is CryptographicException, thrown because of: The certificate is unreadable. If there is no inner exception, there will be a string with info about the certificate and the error.
System..::..InvalidOperationException The certificate could not be validated because the HealthRecordItem is not signed.
Show: