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) 提供預設的對等憑證驗證程式,以驗證對信任人員存放區的對等憑證。 它也會驗證憑證鏈結直到有效根憑證。 您可以實作自訂的驗證程式以指定不同的行為,並使用這個屬性指向自訂的驗證程式。

適用於