Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorKevin Jones <kevin@vcsjones.com>2021-06-28 19:59:06 +0300
committerGitHub <noreply@github.com>2021-06-28 19:59:06 +0300
commitaf18e93a2bb205f4d8ea5a42b5477b8476274933 (patch)
treec24b283a118d5cdb30c080b38dc2c7c6ac3ad053 /docs
parent8707275824c2524fa670312dbc1c78551ce78ef4 (diff)
Obsolete X509Certificate2.PrivateKey and PublicKey.Key. (#54562)
The two properties got different diagnostic IDs so that the messages could better reflect the caller recovery action.
Diffstat (limited to 'docs')
-rw-r--r--docs/project/list-of-diagnostics.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/docs/project/list-of-diagnostics.md b/docs/project/list-of-diagnostics.md
index fc946ddb03b..9497fc7b692 100644
--- a/docs/project/list-of-diagnostics.md
+++ b/docs/project/list-of-diagnostics.md
@@ -81,6 +81,8 @@ The PR that reveals the implementation of the `<IncludeInternalObsoleteAttribute
| __`SYSLIB0024`__ | Creating and unloading AppDomains is not supported and throws an exception. |
| __`SYSLIB0025`__ | SuppressIldasmAttribute has no effect in .NET 6.0+. |
| __`SYSLIB0026`__ | X509Certificate and X509Certificate2 are immutable. Use the appropriate constructor to create a new certificate. |
+| __`SYSLIB0027`__ | PublicKey.Key is obsolete. Use the appropriate method to get the public key, such as GetRSAPublicKey. |
+| __`SYSLIB0028`__ | X509Certificate2.PrivateKey is obsolete. Use the appropriate method to get the private key, such as GetRSAPrivateKey, or use the CopyWithPrivateKey method to create a new instance with a private key. |
## Analyzer Warnings