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
)
Public Sub New (
serialNumber As String,
Optional revocationDate As Nullable(Of DateTime) = Nothing,
Optional reasonCode As Integer = 0
)
public:
X509CRLEntry(
String^ serialNumber,
Nullable<DateTime> revocationDate = nullptr,
int reasonCode = 0
)
new :
serialNumber : string *
?revocationDate : Nullable<DateTime> *
?reasonCode : int
(* Defaults:
let _revocationDate = defaultArg revocationDate null
let _reasonCode = defaultArg reasonCode 0
*)
-> X509CRLEntry
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 Exception | Condition |
---|
ArgumentNullException | The serialNumber parameter is null reference or empty string. |
ArgumentException | The reasonCode contains invalid reason code. |
See Also