X509CertificateValidator 构造函数

定义

初始化 X509CertificateValidator 类的新实例。

protected:
 X509CertificateValidator();
protected X509CertificateValidator ();
Protected Sub New ()

示例

public MyX509CertificateValidator(string allowedIssuerName)
{
    if (allowedIssuerName == null)
    {
        throw new ArgumentNullException("allowedIssuerName");
    }

    this.allowedIssuerName = allowedIssuerName;
}
Public Sub New(ByVal allowedIssuerName As String)
    If allowedIssuerName Is Nothing Then
        Throw New ArgumentNullException("allowedIssuerName")
    End If

    Me.allowedIssuerName = allowedIssuerName

End Sub

注解

默认情况下,此构造函数不初始化任何属性。

适用于