Share via


X509PeerCertificateAuthenticationElement.CustomCertificateValidatorType 属性

定义

获取或设置要使用的自定义对等证书验证程序的类型。

public:
 property System::String ^ CustomCertificateValidatorType { System::String ^ get(); void set(System::String ^ value); };
[System.Configuration.ConfigurationProperty("customCertificateValidatorType", DefaultValue="")]
[System.Configuration.StringValidator(MinLength=0)]
public string CustomCertificateValidatorType { get; set; }
[<System.Configuration.ConfigurationProperty("customCertificateValidatorType", DefaultValue="")>]
[<System.Configuration.StringValidator(MinLength=0)>]
member this.CustomCertificateValidatorType : string with get, set
Public Property CustomCertificateValidatorType As String

属性值

要使用的 X509CertificateValidator 的类型。

属性

注解

Windows Communication Foundation (WCF) 提供一个默认的对等证书验证程序,该程序根据受信任的用户存储来验证对等证书。 它还验证证书是否与有效的根相联系。 您可以实现自定义验证程序以指定不同的行为,并使用该属性指向自定义验证程序。

适用于