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
- FlowDocumentScrollViewer.cs
- EncryptionUtility.cs
- WorkItem.cs
- TypeConverterValueSerializer.cs
- Internal.cs
- BitmapFrameDecode.cs
- MutexSecurity.cs
- SimpleHandlerBuildProvider.cs
- TextEmbeddedObject.cs
- EmptyImpersonationContext.cs
- DesignerCommandAdapter.cs
- TypeResolver.cs
- PageRequestManager.cs
- OleDbRowUpdatedEvent.cs
- MD5CryptoServiceProvider.cs
- SqlCommand.cs
- OrderedDictionary.cs
- Exceptions.cs
- EncryptedPackageFilter.cs
- Lasso.cs
- DataGridComboBoxColumn.cs
- AlphaSortedEnumConverter.cs
- CustomLineCap.cs
- ParallelLoopState.cs
- ImageConverter.cs
- ObjectDataSourceView.cs
- MeasureItemEvent.cs
- IPEndPointCollection.cs
- PropertyFilterAttribute.cs
- ThreadSafeMessageFilterTable.cs
- DataServiceBehavior.cs
- MobileComponentEditorPage.cs
- DbProviderSpecificTypePropertyAttribute.cs
- Geometry.cs
- MessageBox.cs
- BitmapCodecInfoInternal.cs
- PermissionAttributes.cs
- TextElementEnumerator.cs
- BypassElement.cs
- RtfNavigator.cs
- ByteStreamMessageUtility.cs
- DocumentOrderQuery.cs
- EDesignUtil.cs
- TriState.cs
- CellQuery.cs
- URL.cs
- XmlParserContext.cs
- DataGridViewMethods.cs
- TemplatingOptionsDialog.cs
- RootBrowserWindowAutomationPeer.cs
- RequestResizeEvent.cs
- DataGridCellsPresenter.cs
- BaseValidatorDesigner.cs
- RuleInfoComparer.cs
- LayoutEditorPart.cs
- ComponentChangedEvent.cs
- FormatterServices.cs
- IntegerValidatorAttribute.cs
- Site.cs
- DSASignatureFormatter.cs
- DrawingGroup.cs
- ActivitySurrogate.cs
- ButtonAutomationPeer.cs
- DataGrid.cs
- QueuePathDialog.cs
- HTMLTagNameToTypeMapper.cs
- EntityClassGenerator.cs
- TextAction.cs
- ReadContentAsBinaryHelper.cs
- ETagAttribute.cs
- BehaviorDragDropEventArgs.cs
- GridSplitterAutomationPeer.cs
- GridItemCollection.cs
- log.cs
- DelegatingTypeDescriptionProvider.cs
- SymbolTable.cs
- PageTheme.cs
- ListViewAutomationPeer.cs
- AdCreatedEventArgs.cs
- AlignmentXValidation.cs
- InstanceKeyNotReadyException.cs
- DependencyPropertyKey.cs
- AncestorChangedEventArgs.cs
- ThrowOnMultipleAssignment.cs
- ServicePoint.cs
- Quaternion.cs
- ReadWriteSpinLock.cs
- QueryContinueDragEventArgs.cs
- AttachedPropertyInfo.cs
- CompiledQuery.cs
- PeekCompletedEventArgs.cs
- Literal.cs
- PermissionToken.cs
- ImportedPolicyConversionContext.cs
- ExpressionQuoter.cs
- XmlSignatureProperties.cs
- TemplatedMailWebEventProvider.cs
- UserPreferenceChangingEventArgs.cs
- MetadataSerializer.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs