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
- ImageAnimator.cs
- MobileUserControlDesigner.cs
- QilChoice.cs
- ISAPIApplicationHost.cs
- RequestCachingSection.cs
- TextElementCollectionHelper.cs
- CellConstantDomain.cs
- DataSet.cs
- FocusChangedEventArgs.cs
- AuthenticationManager.cs
- AccessText.cs
- ConfigurationStrings.cs
- TcpStreams.cs
- RemoveStoryboard.cs
- TextEffect.cs
- ContravarianceAdapter.cs
- FileSecurity.cs
- VirtualDirectoryMappingCollection.cs
- AspCompat.cs
- TypefaceMap.cs
- ObjectDataSourceChooseTypePanel.cs
- EmbeddedObject.cs
- XdrBuilder.cs
- IndexOutOfRangeException.cs
- CqlParserHelpers.cs
- EntitySqlQueryBuilder.cs
- safelinkcollection.cs
- LoadRetryStrategyFactory.cs
- WindowsIPAddress.cs
- ObjectDataProvider.cs
- MappingMetadataHelper.cs
- PreDigestedSignedInfo.cs
- DemultiplexingDispatchMessageFormatter.cs
- ArrayExtension.cs
- SignatureToken.cs
- WindowsIPAddress.cs
- IdentityReference.cs
- Ipv6Element.cs
- MatchAllMessageFilter.cs
- Rectangle.cs
- LoaderAllocator.cs
- _IPv4Address.cs
- RadioButtonList.cs
- ToolStripItemClickedEventArgs.cs
- DesignSurfaceServiceContainer.cs
- SourceInterpreter.cs
- SystemResourceHost.cs
- CustomDictionarySources.cs
- ArgumentOutOfRangeException.cs
- CompoundFileIOPermission.cs
- XmlCharCheckingWriter.cs
- ToolStripItemTextRenderEventArgs.cs
- ByeOperationCD1AsyncResult.cs
- MsmqInputChannelListenerBase.cs
- DataGridViewDataErrorEventArgs.cs
- CompiledIdentityConstraint.cs
- Property.cs
- TypefaceMap.cs
- SchemaElementLookUpTableEnumerator.cs
- StrongBox.cs
- ContextMenuAutomationPeer.cs
- WindowsGraphics.cs
- Mutex.cs
- ForwardPositionQuery.cs
- FilteredXmlReader.cs
- ListParaClient.cs
- CopyEncoder.cs
- MetadataSerializer.cs
- DataObjectCopyingEventArgs.cs
- Content.cs
- InvalidateEvent.cs
- SchemaDeclBase.cs
- _CommandStream.cs
- MDIWindowDialog.cs
- DesignColumn.cs
- PathStreamGeometryContext.cs
- HasCopySemanticsAttribute.cs
- BamlResourceSerializer.cs
- XPathBinder.cs
- JsonWriter.cs
- TemplateFactory.cs
- MappingModelBuildProvider.cs
- TableCell.cs
- EncoderNLS.cs
- ApplyImportsAction.cs
- UnsafeMethods.cs
- MaskedTextBoxTextEditor.cs
- SessionStateSection.cs
- WebControlsSection.cs
- WSSecurityJan2004.cs
- WeakReference.cs
- JsonFormatWriterGenerator.cs
- DebugControllerThread.cs
- EncryptedReference.cs
- SecureConversationSecurityTokenParameters.cs
- HtmlInputCheckBox.cs
- ServiceModelSecurityTokenRequirement.cs
- RelationalExpressions.cs
- URI.cs
- TcpAppDomainProtocolHandler.cs