| Visual Basic (Usage) |  Copy Code | 
|---|---|
| Dim instance As CertificateValidator Dim chain As X509Certificate2Collection instance.Validate(chain) | |
| C# | |
|---|---|
| public virtual void Validate( X509Certificate2Collection chain ) | |
Parameters
- chain
             Each UA application may have a list of trusted certificates that is different from 
             all other UA applications that may be running on the same machine. As a result, the
             certificate validator cannot rely completely on the Windows certificate store and
             user or machine specific CTLs (certificate trust lists).
            
             The validator constructs the trust chain for the certificate and follows the chain
             until it finds a certification that is in the application trust list. Non-fatal trust
             chain errors (i.e. certificate expired) are ignored if the certificate is in the 
             application trust list.
            
             If no certificate in the chain is trusted then the validator will still accept the
             certification if there are no trust chain errors.
             
             The validator may be configured to ignore the application trust list and/or trust chain.
             
            
            
            
            
            Target Platforms: Windows 7/8/10, Windows Server 2003/2008/2012/2015, .NET4.x
 
     
     
     
     
    
    