public static void RunConfigOperation(Action configOperation, Func <Exception, ConfigurationSettingsException> errorHandler) { ExchangeConfigurationSection.InternalRunConfigOperation(configOperation, delegate(Exception ex) { throw errorHandler(ex); }); }
public static bool TryConvertFromInvariantString(ConfigurationProperty configProperty, string toConvert, out object converted) { object convertedValue = null; ExchangeConfigurationSection.InternalRunConfigOperation(delegate { convertedValue = configProperty.Converter.ConvertFromInvariantString(toConvert); }, delegate(Exception ex) { convertedValue = null; }); converted = convertedValue; return(converted != null); }