public void Copy(X509PeerCertificateElement from)
 {
     if (this.IsReadOnly())
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(System.ServiceModel.SR.GetString("ConfigReadOnly")));
     }
     if (from == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("from");
     }
     this.FindValue = from.FindValue;
     this.StoreLocation = from.StoreLocation;
     this.StoreName = from.StoreName;
     this.X509FindType = from.X509FindType;
 }
示例#2
0
 public void Copy(X509PeerCertificateElement from)
 {
     if (this.IsReadOnly())
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(System.ServiceModel.SR.GetString("ConfigReadOnly")));
     }
     if (from == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("from");
     }
     this.FindValue     = from.FindValue;
     this.StoreLocation = from.StoreLocation;
     this.StoreName     = from.StoreName;
     this.X509FindType  = from.X509FindType;
 }