Click or drag to resize

X509CRLEntry Constructor (String, NullableDateTime, Int32)

Initializes a new instance of the X509CRLEntry class from a serial number, revocation date and revocation reason code.

Namespace:  System.Security.Cryptography.X509Certificates
Assembly:  SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 3.7.0.0 (3.7.0.0)
Syntax
public X509CRLEntry(
	string serialNumber,
	Nullable<DateTime> revocationDate = null,
	int reasonCode = 0
)

Parameters

serialNumber
Type: SystemString
Specifies the revoked certificate serial number. Serial number must be a hex string. It may be lower/upper case and may contain single space between octets.
revocationDate (Optional)
Type: SystemNullableDateTime
Specifies the date and time when certificate is considered explicitly untrusted (revoked). If the parameter is null, a current date and time is used.
reasonCode (Optional)
Type: SystemInt32
Specifies the revocation reason. The value can be one of specified in the ReasonCode, except: Hold Certificate and Release From Hold. Default parameter value is Unspecified.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe serialNumber parameter is null reference or empty string.
ArgumentExceptionThe reasonCode contains invalid reason code.
See Also