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
- BrushMappingModeValidation.cs
- IgnorePropertiesAttribute.cs
- StyleXamlParser.cs
- EntityObject.cs
- Bidi.cs
- AuthorizationSection.cs
- InkCanvasFeedbackAdorner.cs
- ParameterSubsegment.cs
- SingleBodyParameterMessageFormatter.cs
- TextBounds.cs
- PopOutPanel.cs
- WebPartMinimizeVerb.cs
- IIS7UserPrincipal.cs
- SerializationFieldInfo.cs
- PolicyLevel.cs
- Line.cs
- ImageAttributes.cs
- HatchBrush.cs
- DirectoryRootQuery.cs
- MediaContext.cs
- IFlowDocumentViewer.cs
- Assembly.cs
- KerberosRequestorSecurityTokenAuthenticator.cs
- Vector3DConverter.cs
- COM2PropertyDescriptor.cs
- Color.cs
- TextTreeNode.cs
- WSSecurityOneDotZeroSendSecurityHeader.cs
- SequenceRange.cs
- unsafenativemethodsother.cs
- AlternateViewCollection.cs
- Form.cs
- ControlPersister.cs
- OutputScopeManager.cs
- CheckedListBox.cs
- JsonSerializer.cs
- xmlfixedPageInfo.cs
- FixedPageAutomationPeer.cs
- CodeSubDirectoriesCollection.cs
- GetPageCompletedEventArgs.cs
- LingerOption.cs
- ListViewCancelEventArgs.cs
- SettingsPropertyValue.cs
- ExtensionDataReader.cs
- UInt16Converter.cs
- ListDesigner.cs
- _TransmitFileOverlappedAsyncResult.cs
- DataListItem.cs
- IndexingContentUnit.cs
- DataProtection.cs
- CodeVariableDeclarationStatement.cs
- SecurityDocument.cs
- TextEffect.cs
- tooltip.cs
- XmlText.cs
- MethodToken.cs
- DataBindingExpressionBuilder.cs
- RemoteWebConfigurationHostStream.cs
- ScrollableControl.cs
- Int16AnimationUsingKeyFrames.cs
- TextEvent.cs
- TemplateParser.cs
- BooleanFunctions.cs
- ListDictionary.cs
- FrameworkContentElement.cs
- SoapSchemaExporter.cs
- DataGridColumnCollection.cs
- TextFormatterHost.cs
- CodeNamespaceImport.cs
- CompiledRegexRunner.cs
- TextEditor.cs
- CodeArrayIndexerExpression.cs
- IndexerNameAttribute.cs
- AttachInfo.cs
- QEncodedStream.cs
- WebPartConnectionsCloseVerb.cs
- MetadataArtifactLoaderResource.cs
- ToolStripTextBox.cs
- AuthenticatedStream.cs
- PrivacyNoticeBindingElementImporter.cs
- securitycriticaldataformultiplegetandset.cs
- SpotLight.cs
- ScrollBarAutomationPeer.cs
- XmlNavigatorFilter.cs
- XPathNavigatorReader.cs
- SimpleMailWebEventProvider.cs
- SettingsPropertyIsReadOnlyException.cs
- _SslSessionsCache.cs
- VersionUtil.cs
- SafeCoTaskMem.cs
- TextRangeEdit.cs
- MediaPlayerState.cs
- EncryptedType.cs
- GridItemPatternIdentifiers.cs
- LocatorPartList.cs
- EntitySqlQueryCacheKey.cs
- BulletDecorator.cs
- FormatVersion.cs
- X509CertificateRecipientServiceCredential.cs
- ExpressionTextBox.xaml.cs