X509ServiceCertificateAuthenticationElement.CustomCertificateValidatorType 属性

定义

获取或设置要使用的自定义服务证书验证程序的类型。Gets or sets the type of custom service certificate validator to be used.

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

属性值

String

要使用的 X509CertificateValidator 的类型。The type of X509CertificateValidator to be used.

属性

注解

Windows Communication Foundation (WCF) 提供了一个默认的服务证书验证程序,用于根据受信任的人员存储来验证服务证书。Windows Communication Foundation (WCF) provides a default service certificate validator that verifies the service certificate against the trusted people store. 它还验证证书是否与有效的根相联系。It also verifies that the certificate chains up to a valid root. 您可以实现自定义验证程序以指定不同的行为,并使用该属性指向自定义验证程序。You can implement a custom validator to specify a different behavior and use this property to point to the custom validator.

适用于