public void Copy(X509ClientCertificateAuthenticationElement from)
 {
     if (this.IsReadOnly())
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(System.ServiceModel.SR.GetString("ConfigReadOnly")));
     }
     if (from == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("from");
     }
     this.CertificateValidationMode = from.CertificateValidationMode;
     this.RevocationMode = from.RevocationMode;
     this.TrustedStoreLocation = from.TrustedStoreLocation;
     this.IncludeWindowsGroups = from.IncludeWindowsGroups;
     this.MapClientCertificateToWindowsAccount = from.MapClientCertificateToWindowsAccount;
     this.CustomCertificateValidatorType = from.CustomCertificateValidatorType;
 }
 public void Copy(X509ClientCertificateAuthenticationElement from)
 {
     if (this.IsReadOnly())
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(System.ServiceModel.SR.GetString("ConfigReadOnly")));
     }
     if (from == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("from");
     }
     this.CertificateValidationMode            = from.CertificateValidationMode;
     this.RevocationMode                       = from.RevocationMode;
     this.TrustedStoreLocation                 = from.TrustedStoreLocation;
     this.IncludeWindowsGroups                 = from.IncludeWindowsGroups;
     this.MapClientCertificateToWindowsAccount = from.MapClientCertificateToWindowsAccount;
     this.CustomCertificateValidatorType       = from.CustomCertificateValidatorType;
 }