Note: 'userCertificate' type is not supported by this method.
public bool AddCertificate(
X509Certificate2 cert,
DsCertificateType type
)Public Function AddCertificate (
cert As X509Certificate2,
type As DsCertificateType
) As Booleanpublic:
bool AddCertificate(
X509Certificate2^ cert,
DsCertificateType type
)member AddCertificate :
cert : X509Certificate2 *
type : DsCertificateType -> bool | ArgumentException | specified certificate type is not valid. |
| UninitializedObjectException | cert parameter is not valid X.509 certificate object. |
| ArgumentNullException | cert parameter is null. |