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
- DropTarget.cs
- TypeConverterAttribute.cs
- ClientFormsIdentity.cs
- ToggleButtonAutomationPeer.cs
- DependencyPropertyKind.cs
- GradientStop.cs
- ProfileSection.cs
- GenerateTemporaryTargetAssembly.cs
- Int32RectConverter.cs
- CfgParser.cs
- DataSourceBooleanViewSchemaConverter.cs
- _Events.cs
- EventsTab.cs
- ConnectionManagementElement.cs
- UriParserTemplates.cs
- xsdvalidator.cs
- InheritanceAttribute.cs
- DataViewManagerListItemTypeDescriptor.cs
- PagerSettings.cs
- _BasicClient.cs
- RectAnimationBase.cs
- SqlDataSourceConfigureSortForm.cs
- ProfileSection.cs
- linebase.cs
- XmlSchemaElement.cs
- NamedPipeTransportBindingElement.cs
- CallbackHandler.cs
- InplaceBitmapMetadataWriter.cs
- EntityDesignerUtils.cs
- GridViewRowPresenter.cs
- ValidationResult.cs
- FontFamilyValueSerializer.cs
- RectValueSerializer.cs
- WebCategoryAttribute.cs
- WindowsEditBoxRange.cs
- SignatureDescription.cs
- SqlBuffer.cs
- UpdatePanelControlTrigger.cs
- DataIdProcessor.cs
- RenderContext.cs
- RotateTransform3D.cs
- ServiceObjectContainer.cs
- TypeConstant.cs
- NegotiateStream.cs
- NamespaceCollection.cs
- storepermission.cs
- COAUTHINFO.cs
- NameObjectCollectionBase.cs
- DataGridViewCellConverter.cs
- TextEncodedRawTextWriter.cs
- TreeViewHitTestInfo.cs
- ApplicationBuildProvider.cs
- TextDpi.cs
- RuleInfoComparer.cs
- TableRowsCollectionEditor.cs
- EventSinkHelperWriter.cs
- OperatorExpressions.cs
- CollectionBuilder.cs
- RijndaelManaged.cs
- httpserverutility.cs
- DbReferenceCollection.cs
- entityreference_tresulttype.cs
- ISessionStateStore.cs
- UIElementHelper.cs
- ChannelTracker.cs
- MdImport.cs
- ClientScriptManager.cs
- columnmapfactory.cs
- TextTreeTextNode.cs
- ExecutionContext.cs
- DrawingBrush.cs
- TypeGeneratedEventArgs.cs
- ByteArrayHelperWithString.cs
- AmbientLight.cs
- DesignTimeParseData.cs
- ProcessHostMapPath.cs
- CombinedGeometry.cs
- RSAPKCS1KeyExchangeFormatter.cs
- TransformerInfo.cs
- FrugalMap.cs
- WindowsRichEditRange.cs
- TokenBasedSetEnumerator.cs
- SerializationException.cs
- TextStore.cs
- TreeViewDesigner.cs
- TypeDescriptionProvider.cs
- BrowserCapabilitiesFactory.cs
- HighlightVisual.cs
- ExistsInCollection.cs
- EmbeddedMailObject.cs
- DataGridViewSelectedColumnCollection.cs
- StringValidator.cs
- TraceSection.cs
- XamlFxTrace.cs
- ComponentDispatcherThread.cs
- BadImageFormatException.cs
- OleDbStruct.cs
- AnimationLayer.cs
- ProjectionPath.cs
- AccessViolationException.cs