CertificateAuthority Constructor (String, String) |
Note: This API is now obsolete.
Namespace: PKI.CertificateServices
[ObsoleteAttribute("Deprecated. Use 'Connect(String)' static method instead.", true)] public CertificateAuthority( string computerName, string name )
Exception | Condition |
---|---|
ArgumentNullException | Either computerName or name parameter is null or empty. |
ServerUnavailableException | The server could not be contacted via both methods: remote registry and RPC/DCOM transport. |
The default behavior is to retrieve registry information via remote registry functions. If the connection is unsuccessful, the code falls back to RPC/DCOM connections (by using ICertAdmin2 COM interface) to get registry data.