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
- ComEventsHelper.cs
- SettingsPropertyIsReadOnlyException.cs
- HtmlTitle.cs
- CqlLexer.cs
- Odbc32.cs
- HtmlInputSubmit.cs
- SqlBuffer.cs
- NumericPagerField.cs
- StylusPointPropertyUnit.cs
- InputProviderSite.cs
- NamespaceInfo.cs
- MethodBuilder.cs
- XPathExpr.cs
- SessionSwitchEventArgs.cs
- ArgumentOutOfRangeException.cs
- RawUIStateInputReport.cs
- KeyInfo.cs
- ArcSegment.cs
- EmptyEnumerable.cs
- infer.cs
- TextRangeEditLists.cs
- Light.cs
- ToolBar.cs
- ValidationRule.cs
- PasswordRecoveryDesigner.cs
- MailFileEditor.cs
- DoubleLinkListEnumerator.cs
- LambdaCompiler.ControlFlow.cs
- ExtendedPropertyCollection.cs
- ConnectionPoint.cs
- VirtualizingStackPanel.cs
- ImageClickEventArgs.cs
- XsdValidatingReader.cs
- FormsAuthenticationConfiguration.cs
- DataGridViewButtonColumn.cs
- BitmapCache.cs
- XhtmlConformanceSection.cs
- XPathDescendantIterator.cs
- AsyncPostBackTrigger.cs
- ScrollItemPatternIdentifiers.cs
- MdImport.cs
- ControlPropertyNameConverter.cs
- DragCompletedEventArgs.cs
- TextElement.cs
- ErrorInfoXmlDocument.cs
- Internal.cs
- UseAttributeSetsAction.cs
- QilVisitor.cs
- InputLanguageManager.cs
- PointKeyFrameCollection.cs
- ScriptModule.cs
- ContractReference.cs
- NativeMethods.cs
- Stack.cs
- PropertyChange.cs
- ViewGenResults.cs
- SafeCoTaskMem.cs
- DoubleLink.cs
- MediaElementAutomationPeer.cs
- MLangCodePageEncoding.cs
- PartialCachingAttribute.cs
- SafeArchiveContext.cs
- OrderedDictionaryStateHelper.cs
- BezierSegment.cs
- EmptyQuery.cs
- UInt64Storage.cs
- DetailsViewDeleteEventArgs.cs
- StandardOleMarshalObject.cs
- SchemaNotation.cs
- SoapObjectInfo.cs
- SharedRuntimeState.cs
- OracleCommandBuilder.cs
- SafeCertificateStore.cs
- QilGenerator.cs
- ServerValidateEventArgs.cs
- Trace.cs
- StorageAssociationSetMapping.cs
- EntityViewGenerator.cs
- ItemCheckEvent.cs
- UntrustedRecipientException.cs
- ComplexType.cs
- CompilerTypeWithParams.cs
- EntityParameter.cs
- MenuItem.cs
- DirectoryRootQuery.cs
- ScrollChrome.cs
- ParagraphVisual.cs
- CollectionContainer.cs
- EventDescriptor.cs
- WebExceptionStatus.cs
- Border.cs
- SqlRewriteScalarSubqueries.cs
- CornerRadiusConverter.cs
- ListComponentEditor.cs
- Lease.cs
- CompositeDesignerAccessibleObject.cs
- DropShadowBitmapEffect.cs
- ClientFormsAuthenticationCredentials.cs
- ThreadPool.cs
- HtmlInputReset.cs