-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add/update documentation for the X509Certificates namespace. #3669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -2656,6 +2671,7 @@ | |||
<permission cref="T:System.Security.SecurityCriticalAttribute">requires full trust for the immediate caller. This class cannot be used by partially trusted or transparent code.</permission> | |||
<permission cref="F:System.Security.Permissions.SecurityAction.InheritanceDemand">for full trust for inheritors. This member cannot be inherited by partially trusted code.</permission> | |||
<permission cref="T:System.Security.Permissions.KeyContainerPermission">for permission to create a key container. Security action: <see cref="F:System.Security.Permissions.SecurityAction.Demand" />. Associated enumeration: <see cref="F:System.Security.Permissions.KeyContainerPermissionFlags.Create" /></permission> | |||
<exception cref="T:System.PlatformNotSupportedException">.NET Core only: In all cases.</exception> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add a remark to all these APIs indicating the reason why we throw PlatformNotSupportedException
?
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
<summary>To be added.</summary> | ||
<param name="index">The zero-based index at which the value should be inserted.</param> | ||
<param name="value">The object to insert.</param> | ||
<summary>Inserts an element into the collection at the specified index.</summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this method throw if the index is beyond the limits of the list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably, but I can't tell you what it threw. (This explicit implementation was deleted in netcoreapp2.0/netstandard2.0, when CollectionBase was brought back... which is true for the all of the cases where you had exception/behavior questions)
<value>To be added.</value> | ||
<param name="index">The zero-based index of the element to get or set.</param> | ||
<summary>Gets or sets the element at the specified index.</summary> | ||
<value>The element at the specified index.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this method throw if the index is beyond the limits of the list?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll assume the answer to my question is the same as above. Feel free to ignore.
<param name="value">To be added.</param> | ||
<summary>To be added.</summary> | ||
<param name="value">The object to remove from the collection.</param> | ||
<summary>Removes the first occurrence of a specific object from the collection.</summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does this method behave if there's no object with this value?
xml/System.Security.Cryptography.X509Certificates/X509ChainElementCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509ChainElementCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509ExtensionCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509ExtensionCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509ExtensionCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509ExtensionCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509ChainElementCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509ChainElementCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making this change (last for 2.X!). Left a few suggestions for you to consider.
Co-Authored-By: Carlos Sanchez Lopez <1175054+carlossanlop@users.noreply.github.com>
Co-Authored-By: Carlos Sanchez Lopez <1175054+carlossanlop@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with suggestions.
xml/System.Security.Cryptography.X509Certificates/X509Certificate2.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
xml/System.Security.Cryptography.X509Certificates/X509ExtensionCollection.xml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more suggestion to replace a previous suggestion.
xml/System.Security.Cryptography.X509Certificates/X509CertificateCollection.xml
Outdated
Show resolved
Hide resolved
Co-Authored-By: Genevieve Warren <gewarren@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bartonjs I think the PR looks good enough as it is. If you feel like addressing the open questions, let's do it in a separate PR. I'll merge this.
With this change, there are zero
<summary>To be added.</summary>
remaining in the namespace directory.cc: @carlossanlop