Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DefaultValidator.cs
- ProxyWebPartManager.cs
- LogManagementAsyncResult.cs
- FormattedText.cs
- DesignerTextWriter.cs
- Point3DAnimationUsingKeyFrames.cs
- EditorBrowsableAttribute.cs
- CombinedGeometry.cs
- PrintControllerWithStatusDialog.cs
- StylusPlugin.cs
- XsltOutput.cs
- Psha1DerivedKeyGeneratorHelper.cs
- PropertyTab.cs
- _AutoWebProxyScriptWrapper.cs
- ObjectTokenCategory.cs
- WinFormsComponentEditor.cs
- MasterPage.cs
- DebugHandleTracker.cs
- Gdiplus.cs
- VisualTarget.cs
- XPathParser.cs
- IntellisenseTextBox.cs
- MergeEnumerator.cs
- DisplayMemberTemplateSelector.cs
- ModulesEntry.cs
- DataGridViewCellConverter.cs
- InvalidateEvent.cs
- KeyValueConfigurationCollection.cs
- SqlNotificationEventArgs.cs
- SecurityResources.cs
- QueryCacheKey.cs
- DataRowCollection.cs
- XsltException.cs
- XmlRootAttribute.cs
- WindowsTab.cs
- AdvancedBindingPropertyDescriptor.cs
- FileLoadException.cs
- KeyValueInternalCollection.cs
- StickyNote.cs
- InstanceDescriptor.cs
- RequestCachingSection.cs
- MenuItemCollection.cs
- HttpMethodConstraint.cs
- ToolStripScrollButton.cs
- NominalTypeEliminator.cs
- XmlSchemaType.cs
- CodeDOMUtility.cs
- WebEventCodes.cs
- OutOfProcStateClientManager.cs
- NullableDoubleSumAggregationOperator.cs
- ImageConverter.cs
- ResourcePermissionBaseEntry.cs
- SessionState.cs
- EntityStoreSchemaGenerator.cs
- LabelDesigner.cs
- WorkflowApplicationEventArgs.cs
- InvokeProviderWrapper.cs
- StorageScalarPropertyMapping.cs
- ProcessThreadCollection.cs
- documentsequencetextpointer.cs
- ParserOptions.cs
- XsltLoader.cs
- TimerElapsedEvenArgs.cs
- WebPartsSection.cs
- KnownTypesProvider.cs
- ContentElement.cs
- GroupedContextMenuStrip.cs
- DataGridCommandEventArgs.cs
- TaiwanCalendar.cs
- AssociatedControlConverter.cs
- FontCollection.cs
- Scene3D.cs
- HealthMonitoringSection.cs
- SoapRpcServiceAttribute.cs
- PasswordTextNavigator.cs
- GridViewSortEventArgs.cs
- MulticastOption.cs
- ResourcePool.cs
- LicenseManager.cs
- FixedFlowMap.cs
- CryptoConfig.cs
- CustomWebEventKey.cs
- Function.cs
- CellNormalizer.cs
- SimpleFieldTemplateFactory.cs
- DataControlReference.cs
- SpStreamWrapper.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- WpfMemberInvoker.cs
- PageAsyncTaskManager.cs
- RevocationPoint.cs
- IPAddress.cs
- TextRunProperties.cs
- Opcode.cs
- EntityTemplateFactory.cs
- EntityDataSourceDesigner.cs
- EdmProperty.cs
- UIElement.cs
- SplitterPanelDesigner.cs
- SourceFileBuildProvider.cs