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
- ListViewItemMouseHoverEvent.cs
- DataGrid.cs
- ControlIdConverter.cs
- RectKeyFrameCollection.cs
- Compilation.cs
- Internal.cs
- InfoCardListRequest.cs
- ExpressionEditorAttribute.cs
- ResourceAssociationSetEnd.cs
- XPathNavigatorKeyComparer.cs
- _Connection.cs
- Win32Interop.cs
- ELinqQueryState.cs
- SocketPermission.cs
- _HelperAsyncResults.cs
- WebPartConnectionsConfigureVerb.cs
- MessageDescriptionCollection.cs
- DispatcherEventArgs.cs
- SmtpSection.cs
- ColumnClickEvent.cs
- TypeExtensions.cs
- FontSource.cs
- Workspace.cs
- AttributeQuery.cs
- SqlVersion.cs
- ToolStripPanelCell.cs
- ArgumentException.cs
- CodeBinaryOperatorExpression.cs
- ParseElementCollection.cs
- BrushValueSerializer.cs
- StrokeSerializer.cs
- XamlToRtfWriter.cs
- ListControl.cs
- AlphabeticalEnumConverter.cs
- WebHttpSecurity.cs
- ConfigXmlAttribute.cs
- EncryptedKey.cs
- XmlExceptionHelper.cs
- FixedSOMTextRun.cs
- TagPrefixCollection.cs
- VisualBrush.cs
- ColumnCollectionEditor.cs
- MobileUserControlDesigner.cs
- OleDbCommandBuilder.cs
- SqlWriter.cs
- RuleSettingsCollection.cs
- EntitySet.cs
- X509Certificate2Collection.cs
- LogicalExpr.cs
- ApplicationDirectoryMembershipCondition.cs
- HwndKeyboardInputProvider.cs
- FileEnumerator.cs
- DoubleSumAggregationOperator.cs
- MonitorWrapper.cs
- AnnotationResource.cs
- RequestQueue.cs
- SerialPort.cs
- RequestQueryParser.cs
- WindowsHyperlink.cs
- ImageSource.cs
- Optimizer.cs
- FormCollection.cs
- RoleServiceManager.cs
- ellipse.cs
- ProxyWebPartConnectionCollection.cs
- EditorPartDesigner.cs
- StyleCollectionEditor.cs
- CommandCollectionEditor.cs
- ComplexTypeEmitter.cs
- ByteAnimationBase.cs
- ScaleTransform.cs
- XmlChildEnumerator.cs
- SharedPerformanceCounter.cs
- DataPagerFieldCollection.cs
- MetadataSerializer.cs
- JpegBitmapEncoder.cs
- RegexTypeEditor.cs
- SettingsProviderCollection.cs
- ToggleProviderWrapper.cs
- AlternateViewCollection.cs
- RoutedPropertyChangedEventArgs.cs
- CngAlgorithm.cs
- ClientProxyGenerator.cs
- ValueOfAction.cs
- QilTernary.cs
- BaseParaClient.cs
- _ListenerResponseStream.cs
- StreamHelper.cs
- FixedSchema.cs
- Currency.cs
- HtmlInputImage.cs
- SimpleHandlerBuildProvider.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- Int64Converter.cs
- ClientScriptManager.cs
- TileBrush.cs
- SimpleModelProvider.cs
- XmlLinkedNode.cs
- ConfigXmlAttribute.cs
- ExceptionHelpers.cs