コード例 #1
0
 public static void RunConfigOperation(Action configOperation, Func <Exception, ConfigurationSettingsException> errorHandler)
 {
     ExchangeConfigurationSection.InternalRunConfigOperation(configOperation, delegate(Exception ex)
     {
         throw errorHandler(ex);
     });
 }
コード例 #2
0
        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);
        }