Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / Configuration / System / Configuration / IgnoreSection.cs / 1 / 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. //------------------------------------------------------------------------------ //// 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
- ExportOptions.cs
- OleDbSchemaGuid.cs
- EntityDesignerBuildProvider.cs
- ButtonChrome.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- FixedPageAutomationPeer.cs
- SafeSecurityHelper.cs
- ListBase.cs
- XmlSchemaAttributeGroupRef.cs
- HtmlInputFile.cs
- Privilege.cs
- CallContext.cs
- GenericRootAutomationPeer.cs
- baseaxisquery.cs
- HandleInitializationContext.cs
- DictionaryEntry.cs
- HwndSourceParameters.cs
- XamlTypeMapper.cs
- SectionInput.cs
- CompilerResults.cs
- InkCanvasSelectionAdorner.cs
- AsnEncodedData.cs
- RtfToXamlReader.cs
- LayoutEngine.cs
- HttpRequest.cs
- TriState.cs
- DecimalAnimationUsingKeyFrames.cs
- TextBreakpoint.cs
- Scheduler.cs
- UserControlCodeDomTreeGenerator.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- AssemblyInfo.cs
- GridViewSortEventArgs.cs
- Point3DIndependentAnimationStorage.cs
- ApplicationCommands.cs
- FixedSOMTable.cs
- RunWorkerCompletedEventArgs.cs
- WindowsFormsLinkLabel.cs
- CodeDOMUtility.cs
- QilUnary.cs
- InheritablePropertyChangeInfo.cs
- TextTreeTextNode.cs
- FillErrorEventArgs.cs
- DeobfuscatingStream.cs
- MasterPageCodeDomTreeGenerator.cs
- AppAction.cs
- MailWebEventProvider.cs
- DataServiceRequest.cs
- SHA384.cs
- WsdlImporterElementCollection.cs
- RawStylusInputCustomDataList.cs
- FontConverter.cs
- XmlILModule.cs
- BindingMAnagerBase.cs
- ManagementObjectCollection.cs
- MessageRpc.cs
- _ListenerResponseStream.cs
- PageContentAsyncResult.cs
- ICspAsymmetricAlgorithm.cs
- ConstructorNeedsTagAttribute.cs
- StrongNameUtility.cs
- CompressEmulationStream.cs
- Flattener.cs
- FilteredAttributeCollection.cs
- ExpressionEditorAttribute.cs
- ProgressBar.cs
- DelegateBodyWriter.cs
- RegexCharClass.cs
- SiteMapPathDesigner.cs
- HtmlTableRow.cs
- SpeechEvent.cs
- CustomAttributeFormatException.cs
- NamespaceEmitter.cs
- CheckBoxFlatAdapter.cs
- HeaderFilter.cs
- ProcessInfo.cs
- odbcmetadatacolumnnames.cs
- Int64Storage.cs
- ExtendedPropertyCollection.cs
- StaticSiteMapProvider.cs
- RouteParser.cs
- IssuedTokenClientBehaviorsElement.cs
- CategoryEditor.cs
- FindResponse.cs
- CompositionAdorner.cs
- GeometryGroup.cs
- CompilerCollection.cs
- MailWriter.cs
- HandlerBase.cs
- IteratorFilter.cs
- DecimalAnimationBase.cs
- InitializerFacet.cs
- HiddenFieldPageStatePersister.cs
- WindowsEditBoxRange.cs
- LayoutEvent.cs
- ImplicitInputBrush.cs
- FileDialogCustomPlace.cs
- CodeGotoStatement.cs
- Converter.cs
- PropertyRef.cs