public void Copy(WindowsServiceElement from)
 {
     if (this.IsReadOnly())
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(System.ServiceModel.SR.GetString("ConfigReadOnly")));
     }
     if (from == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("from");
     }
     this.AllowAnonymousLogons = from.AllowAnonymousLogons;
     this.IncludeWindowsGroups = from.IncludeWindowsGroups;
 }
Example #2
0
 public void Copy(WindowsServiceElement from)
 {
     if (this.IsReadOnly())
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ConfigurationErrorsException(System.ServiceModel.SR.GetString("ConfigReadOnly")));
     }
     if (from == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("from");
     }
     this.AllowAnonymousLogons = from.AllowAnonymousLogons;
     this.IncludeWindowsGroups = from.IncludeWindowsGroups;
 }