Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / Configuration / System / Configuration / IgnoreSection.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewControlCollection.cs
- ScriptingJsonSerializationSection.cs
- SqlClientPermission.cs
- FormViewUpdatedEventArgs.cs
- SuppressMergeCheckAttribute.cs
- MasterPage.cs
- Rotation3DKeyFrameCollection.cs
- FtpRequestCacheValidator.cs
- DockPatternIdentifiers.cs
- ConnectionStringsSection.cs
- _BufferOffsetSize.cs
- LineServicesRun.cs
- CollectionBase.cs
- MexTcpBindingElement.cs
- ScrollBarAutomationPeer.cs
- Stylesheet.cs
- RoleService.cs
- DirectionalLight.cs
- Classification.cs
- XmlSchemaObject.cs
- CodeDirectiveCollection.cs
- PlatformCulture.cs
- AspCompat.cs
- AssemblyResourceLoader.cs
- XmlUtil.cs
- Globals.cs
- InkCanvasAutomationPeer.cs
- HttpHandlerAction.cs
- DataTableCollection.cs
- XmlResolver.cs
- ClipboardProcessor.cs
- PermissionListSet.cs
- URLIdentityPermission.cs
- XamlSerializerUtil.cs
- CodeTypeReferenceExpression.cs
- TraceLevelHelper.cs
- DoubleStorage.cs
- EndpointAddressMessageFilterTable.cs
- ScrollProviderWrapper.cs
- ItemCheckedEvent.cs
- InvalidComObjectException.cs
- DataTableReader.cs
- CompilationPass2TaskInternal.cs
- AnimatedTypeHelpers.cs
- FastEncoder.cs
- TabRenderer.cs
- DataGridViewTextBoxColumn.cs
- GradientStop.cs
- SingleResultAttribute.cs
- SafeRightsManagementQueryHandle.cs
- AdapterUtil.cs
- ExpressionBuilder.cs
- TextBoxRenderer.cs
- XmlReaderDelegator.cs
- WebBrowserHelper.cs
- StringUtil.cs
- CompositeScriptReferenceEventArgs.cs
- FlowLayoutSettings.cs
- ParameterModifier.cs
- DocumentPaginator.cs
- PointF.cs
- DocumentEventArgs.cs
- KeyEvent.cs
- VisualStyleInformation.cs
- ImmutableObjectAttribute.cs
- CodeTypeDeclarationCollection.cs
- SafeNativeMethods.cs
- DefaultAsyncDataDispatcher.cs
- TypeInfo.cs
- ErrorFormatter.cs
- Delegate.cs
- ProtocolReflector.cs
- MsmqOutputSessionChannel.cs
- Vector3DKeyFrameCollection.cs
- ContentPropertyAttribute.cs
- XmlSchemas.cs
- RegularExpressionValidator.cs
- HTMLTagNameToTypeMapper.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- ManipulationDevice.cs
- IPipelineRuntime.cs
- InlineUIContainer.cs
- FunctionQuery.cs
- ZoneMembershipCondition.cs
- FieldNameLookup.cs
- GroupQuery.cs
- BaseDataBoundControlDesigner.cs
- AttachmentService.cs
- EventHandlersStore.cs
- CacheModeConverter.cs
- ErasingStroke.cs
- IPPacketInformation.cs
- DynamicAttribute.cs
- PathSegmentCollection.cs
- OuterGlowBitmapEffect.cs
- HttpProfileGroupBase.cs
- SqlInternalConnection.cs
- HtmlContainerControl.cs
- X509Certificate2Collection.cs
- XPathDocumentIterator.cs