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
- TypeHelpers.cs
- ContextBase.cs
- ThicknessAnimation.cs
- CompilationRelaxations.cs
- UserPersonalizationStateInfo.cs
- ColorConverter.cs
- MessagePartDescriptionCollection.cs
- XmlArrayItemAttributes.cs
- PropertyGridCommands.cs
- RuleInfoComparer.cs
- ThreadStartException.cs
- Cursor.cs
- AtomServiceDocumentSerializer.cs
- DataSourceBooleanViewSchemaConverter.cs
- Encoder.cs
- XmlSchemaAnnotated.cs
- GlyphRunDrawing.cs
- DataGridViewCellMouseEventArgs.cs
- UnitySerializationHolder.cs
- TableMethodGenerator.cs
- SequentialOutput.cs
- Directory.cs
- sitestring.cs
- ImageSourceValueSerializer.cs
- ControlAdapter.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- GridView.cs
- HelpExampleGenerator.cs
- SafeNativeMethods.cs
- PbrsForward.cs
- HeaderedContentControl.cs
- ListViewTableCell.cs
- QueryOperationResponseOfT.cs
- ProfessionalColorTable.cs
- MD5CryptoServiceProvider.cs
- JsonReaderDelegator.cs
- CustomAttributeSerializer.cs
- ToolStripRenderEventArgs.cs
- IPAddress.cs
- DataGridAddNewRow.cs
- smtpconnection.cs
- DropShadowBitmapEffect.cs
- SpellerError.cs
- WebBrowserSiteBase.cs
- DiagnosticsConfigurationHandler.cs
- SQLRoleProvider.cs
- DesignerForm.cs
- AvTraceFormat.cs
- _NegoState.cs
- HostingEnvironmentException.cs
- _Events.cs
- CursorConverter.cs
- CounterSampleCalculator.cs
- BinaryNode.cs
- XmlSchemaDocumentation.cs
- MoveSizeWinEventHandler.cs
- PersonalizationProviderCollection.cs
- XmlCollation.cs
- EventSource.cs
- StretchValidation.cs
- ConnectionPoint.cs
- PageAsyncTaskManager.cs
- OdbcReferenceCollection.cs
- MsmqVerifier.cs
- TripleDESCryptoServiceProvider.cs
- FixedSOMFixedBlock.cs
- SoapObjectInfo.cs
- RootBrowserWindow.cs
- SatelliteContractVersionAttribute.cs
- UnSafeCharBuffer.cs
- DataConnectionHelper.cs
- QueryStringParameter.cs
- ApplicationFileParser.cs
- BindingContext.cs
- BackStopAuthenticationModule.cs
- GeometryHitTestParameters.cs
- NavigationFailedEventArgs.cs
- PropagatorResult.cs
- OleDbConnection.cs
- RuntimeConfigurationRecord.cs
- WebPartEditorOkVerb.cs
- DBSqlParserTable.cs
- TabControlAutomationPeer.cs
- StorageModelBuildProvider.cs
- FileLoadException.cs
- StreamInfo.cs
- UshortList2.cs
- RootBuilder.cs
- WebReferenceOptions.cs
- SplayTreeNode.cs
- TableLayoutStyle.cs
- VariantWrapper.cs
- MenuBindingsEditorForm.cs
- DataReceivedEventArgs.cs
- MasterPageBuildProvider.cs
- RetrieveVirtualItemEventArgs.cs
- SafeEventLogReadHandle.cs
- MaterialCollection.cs
- GridViewColumnCollection.cs
- LocatorBase.cs