X509ExtensionCollection.Add(X509Extension) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an X509Extension object to an X509ExtensionCollection object.
public:
int Add(System::Security::Cryptography::X509Certificates::X509Extension ^ extension);
public int Add (System.Security.Cryptography.X509Certificates.X509Extension extension);
member this.Add : System.Security.Cryptography.X509Certificates.X509Extension -> int
Public Function Add (extension As X509Extension) As Integer
Parameters
- extension
- X509Extension
An X509Extension object to add to the X509ExtensionCollection object.
Returns
The index at which the extension
parameter was added.
Exceptions
The value of the extension
parameter is null
.
Remarks
The Add method allows duplicate elements to be added to the collection.
Applies to
Співпраця з нами на GitHub
Джерело цього вмісту можна знайти на GitHub, де також можна створювати й переглядати запитання та запити на внесення змін. Докладні відомості наведено в нашому посібнику для співавторів.