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
- ContentPosition.cs
- FileUpload.cs
- IisTraceWebEventProvider.cs
- TransactionChannelFactory.cs
- GlobalAclOperationRequirement.cs
- mediapermission.cs
- MouseButtonEventArgs.cs
- SecurityRuntime.cs
- LinqDataSourceDisposeEventArgs.cs
- TouchFrameEventArgs.cs
- ServiceReference.cs
- PathNode.cs
- DefaultTextStore.cs
- ConstructorArgumentAttribute.cs
- SchemaEntity.cs
- StateMachineWorkflow.cs
- DataViewSetting.cs
- VisualTreeUtils.cs
- TemplateControlBuildProvider.cs
- ErrorInfoXmlDocument.cs
- InstalledFontCollection.cs
- PathNode.cs
- ExternalException.cs
- DependencyObjectType.cs
- LowerCaseStringConverter.cs
- AnalyzedTree.cs
- ProfileSettingsCollection.cs
- XmlNodeList.cs
- EntityRecordInfo.cs
- IsolatedStorageFilePermission.cs
- compensatingcollection.cs
- HttpHandlerAction.cs
- DocumentPage.cs
- EndEvent.cs
- PrintController.cs
- UnsafeNativeMethods.cs
- TreeBuilderXamlTranslator.cs
- CompilerResults.cs
- SystemEvents.cs
- OpenTypeLayoutCache.cs
- DesignerView.xaml.cs
- List.cs
- RuleSetDialog.Designer.cs
- DotExpr.cs
- FileFormatException.cs
- MessageContractImporter.cs
- DecryptedHeader.cs
- SqlConnectionString.cs
- HttpApplicationFactory.cs
- RoutedUICommand.cs
- SqlErrorCollection.cs
- LateBoundBitmapDecoder.cs
- TransformGroup.cs
- DocumentXmlWriter.cs
- WebResourceAttribute.cs
- FormsAuthenticationUserCollection.cs
- SolidColorBrush.cs
- SchemaImporterExtensionElementCollection.cs
- InvalidOperationException.cs
- ColumnTypeConverter.cs
- MarkupCompilePass1.cs
- DragDropHelper.cs
- Visual3D.cs
- GraphicsState.cs
- UnorderedHashRepartitionStream.cs
- TypeBuilder.cs
- TemplateManager.cs
- ConnectionManagementElement.cs
- JavaScriptString.cs
- controlskin.cs
- COM2IDispatchConverter.cs
- DesignerSerializationOptionsAttribute.cs
- ConfigXmlWhitespace.cs
- AttachedAnnotation.cs
- FigureParagraph.cs
- TransformCollection.cs
- DefinitionUpdate.cs
- MD5.cs
- TextRunProperties.cs
- ImageListStreamer.cs
- DefaultWorkflowSchedulerService.cs
- PropertyTabChangedEvent.cs
- PanelDesigner.cs
- ToolStripContentPanelRenderEventArgs.cs
- FileLevelControlBuilderAttribute.cs
- NavigatorOutput.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- Thumb.cs
- BrowserCapabilitiesCompiler.cs
- XmlDataDocument.cs
- StrongNamePublicKeyBlob.cs
- XmlSchemaSearchPattern.cs
- COMException.cs
- ResolvedKeyFrameEntry.cs
- CollectionAdapters.cs
- CompleteWizardStep.cs
- ServiceInfo.cs
- SoapIgnoreAttribute.cs
- PriorityBindingExpression.cs
- SqlExpressionNullability.cs