Click or drag to resize

CertificateAuthority Constructor (String, String)

Note: This API is now obsolete.

Initializes a new instance of the CertificateAuthority class

Namespace:  PKI.CertificateServices
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
[ObsoleteAttribute("Deprecated. Use 'Connect(String)' static method instead.", 
	true)]
public CertificateAuthority(
	string computerName,
	string name
)

Parameters

computerName
Type: SystemString
Specifies the computer name where Certificate Services are installed.
name
Type: SystemString
Specifies the common name of the Certification Authority that is installed on the computer specified in the computerName parameter.
Exceptions
ExceptionCondition
ArgumentNullExceptionEither computerName or name parameter is null or empty.
ServerUnavailableExceptionThe server could not be contacted via both methods: remote registry and RPC/DCOM transport.
Remarks
This constructor allows to connect to a CA server if it can be contacted at least via RPC/DCOM.

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.

See Also