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
- ProcessRequestAsyncResult.cs
- ReferenceEqualityComparer.cs
- DirectionalLight.cs
- DrawingGroup.cs
- WsatProxy.cs
- HttpClientCertificate.cs
- SqlDataSourceDesigner.cs
- TransformerTypeCollection.cs
- ProtocolsConfigurationHandler.cs
- XamlTypeMapper.cs
- CodeTypeMemberCollection.cs
- Section.cs
- NumberFunctions.cs
- XComponentModel.cs
- HashMembershipCondition.cs
- Pkcs7Signer.cs
- CellRelation.cs
- Compress.cs
- ObjectDataSourceStatusEventArgs.cs
- KeyboardNavigation.cs
- UpdatePanel.cs
- initElementDictionary.cs
- ReachDocumentPageSerializerAsync.cs
- Tokenizer.cs
- NeutralResourcesLanguageAttribute.cs
- ImageIndexConverter.cs
- Int32KeyFrameCollection.cs
- DataPager.cs
- MultipartIdentifier.cs
- StackOverflowException.cs
- TextStore.cs
- EpmAttributeNameBuilder.cs
- bidPrivateBase.cs
- HandlerFactoryCache.cs
- EntityDataSourceUtil.cs
- ArgIterator.cs
- ServiceThrottlingBehavior.cs
- MatrixTransform.cs
- PropertyGrid.cs
- BoundField.cs
- BatchStream.cs
- bidPrivateBase.cs
- URIFormatException.cs
- PackageRelationship.cs
- PropertyRef.cs
- PeerApplicationLaunchInfo.cs
- HttpCacheVary.cs
- URIFormatException.cs
- Property.cs
- FontWeightConverter.cs
- storepermissionattribute.cs
- DefaultEventAttribute.cs
- FontUnit.cs
- DirectoryInfo.cs
- ClientTargetCollection.cs
- X509CertificateEndpointIdentity.cs
- ListBase.cs
- ComponentGlyph.cs
- newinstructionaction.cs
- TimelineGroup.cs
- SqlFacetAttribute.cs
- SharingService.cs
- EntityContainerEmitter.cs
- ToolZoneDesigner.cs
- BaseCodeDomTreeGenerator.cs
- ListViewItemCollectionEditor.cs
- SmtpNegotiateAuthenticationModule.cs
- TypeDescriptor.cs
- TraceUtility.cs
- DataObjectFieldAttribute.cs
- FixedDocument.cs
- MessageBox.cs
- ConnectionInterfaceCollection.cs
- WpfKnownMemberInvoker.cs
- Parser.cs
- RadioButtonAutomationPeer.cs
- StrokeNodeData.cs
- ServiceManager.cs
- ToolStripDesignerAvailabilityAttribute.cs
- FlowPosition.cs
- WhitespaceRuleLookup.cs
- ProxyAttribute.cs
- RecommendedAsConfigurableAttribute.cs
- PeerNearMe.cs
- SqlDataSourceView.cs
- TreeNodeClickEventArgs.cs
- PropVariant.cs
- DataSet.cs
- _ListenerResponseStream.cs
- XmlSchemaValidationException.cs
- EventBuilder.cs
- CompiledIdentityConstraint.cs
- Themes.cs
- XmlHelper.cs
- BitmapFrameEncode.cs
- precedingsibling.cs
- VersionedStream.cs
- UrlEncodedParameterWriter.cs
- Predicate.cs
- DataGridViewComboBoxCell.cs