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
- GeneralTransform3DTo2DTo3D.cs
- SystemIcmpV6Statistics.cs
- SqlIdentifier.cs
- AssemblyCache.cs
- AsyncMethodInvoker.cs
- LazyTextWriterCreator.cs
- OperationAbortedException.cs
- VisualBrush.cs
- ConfigurationManager.cs
- ShaderEffect.cs
- XmlLoader.cs
- FormsAuthenticationUser.cs
- FrameworkElement.cs
- XDeferredAxisSource.cs
- EntityDataSourceDesigner.cs
- ActivityInstance.cs
- AsyncResult.cs
- DataPointer.cs
- BasicExpressionVisitor.cs
- ExpandableObjectConverter.cs
- CheckBoxFlatAdapter.cs
- DiscoveryVersionConverter.cs
- RoleServiceManager.cs
- DataGridViewRowConverter.cs
- CodeMemberProperty.cs
- SessionParameter.cs
- SharedConnectionInfo.cs
- XPathArrayIterator.cs
- Properties.cs
- Assembly.cs
- CommonEndpointBehaviorElement.cs
- ReadingWritingEntityEventArgs.cs
- remotingproxy.cs
- PasswordBox.cs
- SessionStateItemCollection.cs
- DrawingGroup.cs
- KeyFrames.cs
- FamilyMapCollection.cs
- UnknownBitmapDecoder.cs
- GestureRecognitionResult.cs
- DeviceSpecificDesigner.cs
- DataGridViewRowPostPaintEventArgs.cs
- CompressEmulationStream.cs
- CompilerInfo.cs
- AuthStoreRoleProvider.cs
- ItemsPanelTemplate.cs
- InstanceBehavior.cs
- TableSectionStyle.cs
- NavigationPropertySingletonExpression.cs
- BufferedGraphicsManager.cs
- CellTreeNode.cs
- StyleBamlTreeBuilder.cs
- AtomEntry.cs
- TextRangeEditTables.cs
- CFStream.cs
- IxmlLineInfo.cs
- SynchronizedPool.cs
- LockRecoveryTask.cs
- BigInt.cs
- ReceiveErrorHandling.cs
- TypeDescriptor.cs
- HandlerBase.cs
- HandlerFactoryCache.cs
- RectValueSerializer.cs
- SqlParameterizer.cs
- IPGlobalProperties.cs
- EventDrivenDesigner.cs
- ToolBarPanel.cs
- DeferredElementTreeState.cs
- BooleanAnimationUsingKeyFrames.cs
- UTF8Encoding.cs
- CommandPlan.cs
- CounterNameConverter.cs
- StringAttributeCollection.cs
- PatternMatcher.cs
- ExpressionBindingCollection.cs
- CodePageUtils.cs
- XmlReader.cs
- ListCollectionView.cs
- DbConnectionPoolIdentity.cs
- HotCommands.cs
- PointConverter.cs
- NativeStructs.cs
- System.Data_BID.cs
- TextContainerChangeEventArgs.cs
- XmlSchemaResource.cs
- DesignDataSource.cs
- ValidationError.cs
- MessageQueueAccessControlEntry.cs
- LinqDataSourceContextEventArgs.cs
- QilInvokeLateBound.cs
- LinqDataSourceHelper.cs
- SmtpClient.cs
- ObjectStateManagerMetadata.cs
- StrongNameMembershipCondition.cs
- GenerateScriptTypeAttribute.cs
- SqlPersonalizationProvider.cs
- RuntimeArgumentHandle.cs
- HScrollProperties.cs
- EntryIndex.cs