System.Configuration.ConfigurationManager.SetConfigurationSystem C# (CSharp) Метод

SetConfigurationSystem() статический приватный Метод

static private SetConfigurationSystem ( IInternalConfigSystem configSystem, bool initComplete ) : void
configSystem IInternalConfigSystem
initComplete bool
Результат void
        internal static void SetConfigurationSystem(IInternalConfigSystem configSystem, bool initComplete) {
            lock (s_initLock) {
                // It is an error if the configuration system has already been set.
                if (s_initState != InitState.NotStarted) {
                    throw new InvalidOperationException(SR.GetString(SR.Config_system_already_set));
                }

                s_configSystem = configSystem;
                if (initComplete) {
                    s_initState = InitState.Completed;
                }
                else {
                    s_initState = InitState.Usable;
                }
            }
        }