共用方式為


X509CertificateValidationElement.CertificateValidationMode 屬性

定義

取得或設定憑證驗證模式。

public:
 property System::ServiceModel::Security::X509CertificateValidationMode CertificateValidationMode { System::ServiceModel::Security::X509CertificateValidationMode get(); void set(System::ServiceModel::Security::X509CertificateValidationMode value); };
[System.Configuration.ConfigurationProperty("certificateValidationMode", DefaultValue=System.ServiceModel.Security.X509CertificateValidationMode.PeerOrChainTrust, IsRequired=false)]
public System.ServiceModel.Security.X509CertificateValidationMode CertificateValidationMode { get; set; }
[<System.Configuration.ConfigurationProperty("certificateValidationMode", DefaultValue=System.ServiceModel.Security.X509CertificateValidationMode.PeerOrChainTrust, IsRequired=false)>]
member this.CertificateValidationMode : System.ServiceModel.Security.X509CertificateValidationMode with get, set
Public Property CertificateValidationMode As X509CertificateValidationMode

屬性值

憑證驗證模式。 預設為 PeerOrChainTrust

屬性

備註

這是選用屬性。 它代表 certificateValidationMode 項目的 <certificateValidation> 屬性。

適用於