X509CertificateCollection.Add Method
Appends a X509Certificate object to the end of the current X509CertificateCollection.
Namespace: Microsoft.Web.Services2.Security.X509
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)
Usage
'Usage
Dim certificate As X509Certificate
Dim returnValue As Integer
Dim x509CertificateCollection1 As X509CertificateCollection
returnValue = x509CertificateCollection1.Add(certificate)
Syntax
'Declaration
Public Function Add( _
ByVal certificate As X509Certificate _
) As Integer
public int Add(
X509Certificate certificate
);
public: Int32 Add(
X509Certificate^ certificate
);
public int Add(
X509Certificate certificate
);
public function Add(
certificate : X509Certificate
) : int;
Parameters
- certificate
A X509Certificate object to be added.
Return Value
The X509CertificateCollection index at which the certificate has been added.
Exceptions
| Exception type | Condition |
|---|---|
| System.ArgumentNullException | certificateis null. |
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000
Target Platforms
Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone
See Also
Reference
X509CertificateCollection Class
Microsoft.Web.Services2.Security.X509 Namespace