Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / IgnoreSection.cs / 1305376 / IgnoreSection.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Configuration { using System.Xml; sealed public class IgnoreSection : ConfigurationSection { private static ConfigurationPropertyCollection s_properties; string _rawXml = string.Empty; bool _isModified; private static ConfigurationPropertyCollection EnsureStaticPropertyBag() { if (s_properties == null) { ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection(); s_properties = properties; } return s_properties; } public IgnoreSection() { EnsureStaticPropertyBag(); } protected internal override ConfigurationPropertyCollection Properties { get { return EnsureStaticPropertyBag(); } } protected internal override bool IsModified() { return _isModified; } protected internal override void ResetModified() { _isModified = false; } protected internal override void Reset(ConfigurationElement parentSection) { _rawXml = string.Empty; _isModified = false; } protected internal override void DeserializeSection(XmlReader xmlReader) { if (!xmlReader.Read() || xmlReader.NodeType != XmlNodeType.Element) { throw new ConfigurationErrorsException(SR.GetString(SR.Config_base_expected_to_find_element), xmlReader); } _rawXml = xmlReader.ReadOuterXml(); _isModified = true; } protected internal override string SerializeSection(ConfigurationElement parentSection, string name, ConfigurationSaveMode saveMode) { return _rawXml; } } } // 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
- Trace.cs
- DecoratedNameAttribute.cs
- AssociationSet.cs
- UserInitiatedRoutedEventPermissionAttribute.cs
- ReachObjectContext.cs
- PasswordPropertyTextAttribute.cs
- SerialErrors.cs
- ConfigurationCollectionAttribute.cs
- Literal.cs
- XmlCharType.cs
- MessageBox.cs
- InputBindingCollection.cs
- WebPartConnectionsEventArgs.cs
- CellTreeNode.cs
- Atom10FormatterFactory.cs
- MarshalByValueComponent.cs
- ThousandthOfEmRealPoints.cs
- hwndwrapper.cs
- ServiceNameCollection.cs
- ReflectionTypeLoadException.cs
- TerminateSequence.cs
- SqlNotificationEventArgs.cs
- HtmlValidationSummaryAdapter.cs
- SiteMapNode.cs
- CodeTypeReferenceSerializer.cs
- QilPatternVisitor.cs
- NetworkStream.cs
- PropertyEmitter.cs
- XmlSerializerSection.cs
- SmiRequestExecutor.cs
- EventLogger.cs
- ScrollContentPresenter.cs
- OperatingSystem.cs
- WebPartCollection.cs
- TextCompositionManager.cs
- Descriptor.cs
- BitmapEffectState.cs
- InstanceCreationEditor.cs
- FlagsAttribute.cs
- FontDifferentiator.cs
- EntityCommandDefinition.cs
- DataColumnMappingCollection.cs
- Pool.cs
- DynamicRenderer.cs
- XmlSerializationWriter.cs
- Line.cs
- ComplexLine.cs
- StatusBarPanel.cs
- ExcludePathInfo.cs
- PageAsyncTask.cs
- Cast.cs
- SHA384Managed.cs
- CultureSpecificCharacterBufferRange.cs
- CompiledQueryCacheEntry.cs
- WebRequestModuleElement.cs
- CqlIdentifiers.cs
- ResolveNameEventArgs.cs
- Executor.cs
- SafeHandles.cs
- ClientCultureInfo.cs
- HttpModuleCollection.cs
- Section.cs
- ScrollProperties.cs
- XmlSchemaSimpleType.cs
- PrePrepareMethodAttribute.cs
- XdrBuilder.cs
- CryptoApi.cs
- COM2DataTypeToManagedDataTypeConverter.cs
- XmlWriterSettings.cs
- ParserContext.cs
- MultiViewDesigner.cs
- KeyConstraint.cs
- SHA1.cs
- PEFileReader.cs
- EntityDataSourceContextDisposingEventArgs.cs
- PropertyGridView.cs
- WebPartCloseVerb.cs
- OperationCanceledException.cs
- Normalization.cs
- MissingMethodException.cs
- CrossContextChannel.cs
- Message.cs
- AsymmetricKeyExchangeDeformatter.cs
- DropSourceBehavior.cs
- SecurityDescriptor.cs
- ResourceManagerWrapper.cs
- PreviewPrintController.cs
- TrackingServices.cs
- DBSqlParserColumnCollection.cs
- NonSerializedAttribute.cs
- ActiveXContainer.cs
- NavigateEvent.cs
- FileResponseElement.cs
- RadioButtonStandardAdapter.cs
- DataControlButton.cs
- ConnectionManagementElement.cs
- XPathAxisIterator.cs
- MILUtilities.cs
- CodeConstructor.cs
- Marshal.cs