Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- BindingElement.cs
- RawMouseInputReport.cs
- DesignerHierarchicalDataSourceView.cs
- DocumentPageHost.cs
- DbProviderFactory.cs
- DefaultProxySection.cs
- WebHeaderCollection.cs
- nulltextcontainer.cs
- WmlTextBoxAdapter.cs
- DodSequenceMerge.cs
- ThumbButtonInfoCollection.cs
- SecurityDescriptor.cs
- ItemsChangedEventArgs.cs
- ToolBarButtonDesigner.cs
- CompiledIdentityConstraint.cs
- CodePageUtils.cs
- DependencyPropertyKind.cs
- DataGridColumnDropSeparator.cs
- _UncName.cs
- InkCanvasFeedbackAdorner.cs
- MasterPageCodeDomTreeGenerator.cs
- AppLevelCompilationSectionCache.cs
- URLString.cs
- SmiContext.cs
- Stylesheet.cs
- TypeForwardedToAttribute.cs
- XmlSerializer.cs
- ExpressionEditorAttribute.cs
- DrawTreeNodeEventArgs.cs
- Triangle.cs
- FixedTextSelectionProcessor.cs
- DateTimeFormatInfoScanner.cs
- PersistChildrenAttribute.cs
- AppDomainShutdownMonitor.cs
- WebPartZoneBaseDesigner.cs
- XmlStringTable.cs
- HwndSourceParameters.cs
- RecordsAffectedEventArgs.cs
- XmlReflectionImporter.cs
- RijndaelManagedTransform.cs
- PasswordDeriveBytes.cs
- StateFinalizationActivity.cs
- InkCanvasSelectionAdorner.cs
- FrameworkContentElement.cs
- AutomationIdentifierGuids.cs
- SystemKeyConverter.cs
- DefaultWorkflowTransactionService.cs
- Cursors.cs
- HtmlMeta.cs
- Button.cs
- WebPartsPersonalization.cs
- FrameworkElement.cs
- SessionStateItemCollection.cs
- CommandLibraryHelper.cs
- DataGridColumnHeaderCollection.cs
- MarkupExtensionParser.cs
- ParseChildrenAsPropertiesAttribute.cs
- DbException.cs
- HttpDebugHandler.cs
- ContentType.cs
- XhtmlBasicImageAdapter.cs
- IPipelineRuntime.cs
- ApplicationTrust.cs
- Buffer.cs
- ValidationErrorEventArgs.cs
- TargetControlTypeCache.cs
- Crypto.cs
- DataObjectPastingEventArgs.cs
- SignatureResourcePool.cs
- Evaluator.cs
- QueryCursorEventArgs.cs
- WpfXamlLoader.cs
- ArraySortHelper.cs
- TargetControlTypeAttribute.cs
- ElapsedEventArgs.cs
- BaseEntityWrapper.cs
- XmlImplementation.cs
- PathSegment.cs
- InvokerUtil.cs
- GradientBrush.cs
- NamespaceEmitter.cs
- DataSourceXmlElementAttribute.cs
- securestring.cs
- InternalsVisibleToAttribute.cs
- ProjectionPathSegment.cs
- LayoutTableCell.cs
- formatter.cs
- DynamicQueryStringParameter.cs
- ProcessHostMapPath.cs
- TextTreeTextBlock.cs
- LinkUtilities.cs
- Stack.cs
- LoginCancelEventArgs.cs
- ControlDesigner.cs
- WmlObjectListAdapter.cs
- ArrangedElement.cs
- ToolStripItem.cs
- XPathArrayIterator.cs
- OletxTransactionManager.cs
- DefaultAsyncDataDispatcher.cs