Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / ConfigDefinitionUpdates.cs / 1305376 / ConfigDefinitionUpdates.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Collections; // // Contains all the updates to section definitions across all location sections. // internal class ConfigDefinitionUpdates { private ArrayList _locationUpdatesList; private bool _requireLocationWritten; internal ConfigDefinitionUpdates() { _locationUpdatesList = new ArrayList(); } // // Find the location update with a certain set of location attributes. // internal LocationUpdates FindLocationUpdates(OverrideModeSetting overrideMode, bool inheritInChildApps) { foreach (LocationUpdates locationUpdates in _locationUpdatesList) { if ( OverrideModeSetting.CanUseSameLocationTag(locationUpdates.OverrideMode, overrideMode) && locationUpdates.InheritInChildApps == inheritInChildApps) { return locationUpdates; } } return null; } // // Add a section definition update to the correct location update. // internal DefinitionUpdate AddUpdate(OverrideModeSetting overrideMode, bool inheritInChildApps, bool moved, string updatedXml, SectionRecord sectionRecord) { LocationUpdates locationUpdates = FindLocationUpdates(overrideMode, inheritInChildApps); if (locationUpdates == null) { locationUpdates = new LocationUpdates(overrideMode, inheritInChildApps); _locationUpdatesList.Add(locationUpdates); } DefinitionUpdate definitionUpdate = new DefinitionUpdate(sectionRecord.ConfigKey, moved, updatedXml, sectionRecord); locationUpdates.SectionUpdates.AddSection(definitionUpdate); return definitionUpdate; } // // Determine which section definition updates are new. // internal void CompleteUpdates() { foreach (LocationUpdates locationUpdates in _locationUpdatesList) { locationUpdates.CompleteUpdates(); } } internal ArrayList LocationUpdatesList { get {return _locationUpdatesList;} } internal bool RequireLocation { get { return _requireLocationWritten; } set { _requireLocationWritten = value; } } internal void FlagLocationWritten() { _requireLocationWritten = false; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- GPRECT.cs
- SplitterPanel.cs
- FaultImportOptions.cs
- HttpConfigurationSystem.cs
- Single.cs
- BamlRecords.cs
- DataTemplate.cs
- PersonalizableAttribute.cs
- WizardForm.cs
- SettingsContext.cs
- FixedSchema.cs
- Point3DAnimationUsingKeyFrames.cs
- AnchorEditor.cs
- FixedSOMTableRow.cs
- DataGridViewDataErrorEventArgs.cs
- bindurihelper.cs
- SystemIPGlobalStatistics.cs
- CaseStatement.cs
- WebPartChrome.cs
- LocalizableResourceBuilder.cs
- XmlArrayItemAttributes.cs
- LowerCaseStringConverter.cs
- HuffCodec.cs
- ParameterElementCollection.cs
- messageonlyhwndwrapper.cs
- MessagingDescriptionAttribute.cs
- ScaleTransform.cs
- DeclarativeCatalogPart.cs
- FormatterServices.cs
- TemplateXamlTreeBuilder.cs
- DataGridRelationshipRow.cs
- EntityPropertyMappingAttribute.cs
- AvTrace.cs
- ZipIOCentralDirectoryBlock.cs
- DbParameterCollectionHelper.cs
- PageContent.cs
- SamlEvidence.cs
- XmlChoiceIdentifierAttribute.cs
- AbandonedMutexException.cs
- ToolBarOverflowPanel.cs
- ArrayConverter.cs
- UnsafeNativeMethods.cs
- Point3D.cs
- ItemChangedEventArgs.cs
- ScrollContentPresenter.cs
- PresentationSource.cs
- ColorIndependentAnimationStorage.cs
- NotFiniteNumberException.cs
- SiteMapNodeItem.cs
- cookiecontainer.cs
- RepeatButton.cs
- NTAccount.cs
- ADConnectionHelper.cs
- TextFormatterImp.cs
- CleanUpVirtualizedItemEventArgs.cs
- ObjectSelectorEditor.cs
- XmlTextReader.cs
- InputLangChangeRequestEvent.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- CompilationLock.cs
- BitmapEffectDrawingContextWalker.cs
- ColumnResizeAdorner.cs
- DataDocumentXPathNavigator.cs
- baseaxisquery.cs
- QueryCacheKey.cs
- VisualProxy.cs
- nulltextcontainer.cs
- SQLBytesStorage.cs
- TableLayoutPanelDesigner.cs
- BooleanFunctions.cs
- WebPartDeleteVerb.cs
- OutputScopeManager.cs
- ParseNumbers.cs
- COM2TypeInfoProcessor.cs
- StylusPlugInCollection.cs
- ScaleTransform.cs
- WebServiceData.cs
- LinkArea.cs
- COM2TypeInfoProcessor.cs
- TextTreeNode.cs
- ScriptResourceAttribute.cs
- XmlSerializationReader.cs
- XsdBuildProvider.cs
- AutomationPatternInfo.cs
- XmlNodeChangedEventArgs.cs
- CodeChecksumPragma.cs
- ParagraphResult.cs
- HashAlgorithm.cs
- RuntimeArgumentHandle.cs
- WindowsFormsSectionHandler.cs
- SocketAddress.cs
- MissingSatelliteAssemblyException.cs
- compensatingcollection.cs
- Process.cs
- SingleAnimationBase.cs
- DependsOnAttribute.cs
- UniqueSet.cs
- MethodBody.cs
- EasingQuaternionKeyFrame.cs
- BinHexEncoding.cs