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
- ForwardPositionQuery.cs
- TrackingProvider.cs
- TextSearch.cs
- ParameterElementCollection.cs
- Int64.cs
- ResourcePool.cs
- CodeAccessSecurityEngine.cs
- ExpressionConverter.cs
- HandlerMappingMemo.cs
- XmlLoader.cs
- PolyBezierSegment.cs
- RadialGradientBrush.cs
- FixedDocumentPaginator.cs
- WebPartMinimizeVerb.cs
- DbParameterHelper.cs
- __Filters.cs
- SamlConstants.cs
- Executor.cs
- UInt64Storage.cs
- EventLogPermissionEntry.cs
- CornerRadius.cs
- AutoSizeToolBoxItem.cs
- InkCanvasAutomationPeer.cs
- ResourceProviderFactory.cs
- ZipIOCentralDirectoryFileHeader.cs
- WpfPayload.cs
- COSERVERINFO.cs
- ServiceReference.cs
- Mouse.cs
- SocketAddress.cs
- DummyDataSource.cs
- Route.cs
- ContextActivityUtils.cs
- MenuItemCollection.cs
- DetailsViewInsertEventArgs.cs
- XmlSchemaValidationException.cs
- Tablet.cs
- IDQuery.cs
- datacache.cs
- ItemList.cs
- SequenceQuery.cs
- ServiceInfo.cs
- SaveLedgerEntryRequest.cs
- HttpProcessUtility.cs
- ResourcePermissionBase.cs
- ObjectParameterCollection.cs
- XmlDataSource.cs
- ScriptModule.cs
- DbProviderFactoriesConfigurationHandler.cs
- FaultHandlingFilter.cs
- WebRequestModuleElementCollection.cs
- OleDbRowUpdatingEvent.cs
- DependencyProperty.cs
- SoapMessage.cs
- PerformanceCounterTraceRecord.cs
- ClassHandlersStore.cs
- SimpleRecyclingCache.cs
- ListDictionaryInternal.cs
- WindowsImpersonationContext.cs
- SafeProcessHandle.cs
- LinqDataSourceStatusEventArgs.cs
- GridViewColumnHeader.cs
- ProfileManager.cs
- AdjustableArrowCap.cs
- CryptoKeySecurity.cs
- BuildProvider.cs
- EncoderExceptionFallback.cs
- COM2ComponentEditor.cs
- DataGridViewTextBoxCell.cs
- GroupDescription.cs
- SelectionHighlightInfo.cs
- CollectionViewGroupRoot.cs
- _LoggingObject.cs
- LocalBuilder.cs
- HintTextConverter.cs
- Timeline.cs
- DataSourceGroupCollection.cs
- IndexedEnumerable.cs
- TriggerActionCollection.cs
- FixedSOMLineRanges.cs
- BamlReader.cs
- MeshGeometry3D.cs
- ExpanderAutomationPeer.cs
- Visual.cs
- TypeConverterHelper.cs
- GeometryConverter.cs
- XmlIgnoreAttribute.cs
- ArrayList.cs
- ReliabilityContractAttribute.cs
- DocumentXPathNavigator.cs
- Label.cs
- ProcessingInstructionAction.cs
- StringValueSerializer.cs
- BridgeDataRecord.cs
- AttributeData.cs
- PackUriHelper.cs
- CommonXSendMessage.cs
- BinaryParser.cs
- RtfFormatStack.cs
- pingexception.cs