X509CertificateCollection.Add(X509Certificate) 方法

定义

向当前 X509CertificateCollection 添加具有指定值的 X509CertificateAdds an X509Certificate with the specified value to the current X509CertificateCollection.

public:
 int Add(System::Security::Cryptography::X509Certificates::X509Certificate ^ value);
public int Add (System.Security.Cryptography.X509Certificates.X509Certificate value);
member this.Add : System.Security.Cryptography.X509Certificates.X509Certificate -> int
Public Function Add (value As X509Certificate) As Integer

参数

value
X509Certificate

要添加到当前 X509CertificateCollection 中的 X509CertificateThe X509Certificate to add to the current X509CertificateCollection.

返回

Int32

当前 X509CertificateCollection 内的索引,于此处插入了新的 X509CertificateThe index into the current X509CertificateCollection at which the new X509Certificate was inserted.

适用于

另请参阅