Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / xsp / System / Web / Configuration / ErrorRuntimeConfig.cs / 1 / ErrorRuntimeConfig.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Web.Configuration {
using System.Configuration;
using System.Configuration.Internal;
using System.Web.Util;
//
// Any attempt to access any section will result in an exception.
//
internal class ErrorRuntimeConfig : RuntimeConfig {
internal ErrorRuntimeConfig() : base(new ErrorConfigRecord(), false) {}
protected override object GetSectionObject(string sectionName) {
throw new ConfigurationErrorsException();
}
//
// Any attempt to access the record will result in an exception.
//
private class ErrorConfigRecord : IInternalConfigRecord {
internal ErrorConfigRecord() {
}
string IInternalConfigRecord.ConfigPath {
get {
throw new ConfigurationErrorsException();
}
}
string IInternalConfigRecord.StreamName {
get {
throw new ConfigurationErrorsException();
}
}
bool IInternalConfigRecord.HasInitErrors {
get {
return true;
}
}
void IInternalConfigRecord.ThrowIfInitErrors() {
throw new ConfigurationErrorsException();
}
object IInternalConfigRecord.GetSection(string configKey) {
throw new ConfigurationErrorsException();
}
object IInternalConfigRecord.GetLkgSection(string configKey) {
throw new ConfigurationErrorsException();
}
void IInternalConfigRecord.RefreshSection(string configKey) {
throw new ConfigurationErrorsException();
}
void IInternalConfigRecord.Remove() {
throw new ConfigurationErrorsException();
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FileDialog.cs
- messageonlyhwndwrapper.cs
- AttachedAnnotationChangedEventArgs.cs
- StructuredType.cs
- DataGrid.cs
- EventLog.cs
- XmlDataSource.cs
- TcpServerChannel.cs
- SelectionGlyph.cs
- ScriptingWebServicesSectionGroup.cs
- StaticSiteMapProvider.cs
- SqlXml.cs
- XmlWriterTraceListener.cs
- PrePrepareMethodAttribute.cs
- QuaternionAnimation.cs
- BitmapEffect.cs
- DefaultWorkflowLoaderService.cs
- DataSourceGeneratorException.cs
- ByteStorage.cs
- Util.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ChildrenQuery.cs
- ConfigXmlCDataSection.cs
- ProtocolViolationException.cs
- UnsafeNativeMethodsCLR.cs
- PrintPreviewControl.cs
- HttpHandlerAction.cs
- WebPartConnectionsDisconnectVerb.cs
- DataTableReaderListener.cs
- DeploymentSection.cs
- SimpleType.cs
- ElementHostPropertyMap.cs
- DataColumnChangeEvent.cs
- UserControlBuildProvider.cs
- TableLayoutCellPaintEventArgs.cs
- ReadWriteSpinLock.cs
- VsPropertyGrid.cs
- DataGridViewSelectedRowCollection.cs
- HostingPreferredMapPath.cs
- ImageConverter.cs
- SharedPersonalizationStateInfo.cs
- HttpBufferlessInputStream.cs
- XmlExpressionDumper.cs
- BuildProviderAppliesToAttribute.cs
- FontEmbeddingManager.cs
- PolyLineSegmentFigureLogic.cs
- SessionIDManager.cs
- ScaleTransform.cs
- ColumnMapCopier.cs
- WSSecurityPolicy11.cs
- ParsedAttributeCollection.cs
- Pens.cs
- Brush.cs
- XPathExpr.cs
- StringArrayConverter.cs
- CssTextWriter.cs
- OrderedHashRepartitionStream.cs
- DictionarySectionHandler.cs
- DBDataPermission.cs
- RouteCollection.cs
- XmlReader.cs
- X509Chain.cs
- BitmapDecoder.cs
- ValidateNames.cs
- CellQuery.cs
- BufferAllocator.cs
- SecurityTokenTypes.cs
- Schema.cs
- ComponentGlyph.cs
- OpacityConverter.cs
- ObjectConverter.cs
- WebConfigurationHost.cs
- FontDialog.cs
- PeerDuplexChannel.cs
- MimePart.cs
- SpecialFolderEnumConverter.cs
- TabletDeviceInfo.cs
- BitmapEffectDrawingContextWalker.cs
- CharUnicodeInfo.cs
- XmlDataSourceView.cs
- XmlIlGenerator.cs
- BasePattern.cs
- MetadataCollection.cs
- ThicknessAnimationBase.cs
- DataControlImageButton.cs
- MulticastNotSupportedException.cs
- TranslateTransform.cs
- DurationConverter.cs
- HttpModuleCollection.cs
- GeometryGroup.cs
- _HeaderInfoTable.cs
- Vector3dCollection.cs
- DataObjectMethodAttribute.cs
- BatchStream.cs
- LocationChangedEventArgs.cs
- OptimalTextSource.cs
- TimeoutValidationAttribute.cs
- EndpointAddressProcessor.cs
- UIElementPropertyUndoUnit.cs
- RootBrowserWindowAutomationPeer.cs