X509CertificateValidator.PeerOrChainTrust 属性

定义

获取一个验证程序,它通过验证证书是否位于 TrustedPeople 证书存储区中来验证证书,或通过构建证书信任链来验证证书。 如果证书通过任一验证方法,就是受信任的。

public:
 static property System::IdentityModel::Selectors::X509CertificateValidator ^ PeerOrChainTrust { System::IdentityModel::Selectors::X509CertificateValidator ^ get(); };
public static System.IdentityModel.Selectors.X509CertificateValidator PeerOrChainTrust { get; }
static member PeerOrChainTrust : System.IdentityModel.Selectors.X509CertificateValidator
Public Shared ReadOnly Property PeerOrChainTrust As X509CertificateValidator

属性值

一个 X509CertificateValidator,它通过验证证书是否位于 TrustedPeople 证书存储区中来验证证书,或通过构建证书信任链来验证证书。

注解

此静态属性的值可作为参数提供给 X509SecurityTokenAuthenticator 类的构造函数之一。

适用于