Code:
/ FX-1434 / FX-1434 / 1.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
- ToolboxItemSnapLineBehavior.cs
- ConfigXmlElement.cs
- CodeArgumentReferenceExpression.cs
- CacheOutputQuery.cs
- IntegerValidator.cs
- AssemblyInfo.cs
- Predicate.cs
- CollectionCodeDomSerializer.cs
- BitmapFrameEncode.cs
- BitmapEffectGroup.cs
- XDRSchema.cs
- AssemblyBuilder.cs
- SoapSchemaExporter.cs
- TextSpanModifier.cs
- DefaultCompensation.cs
- ScrollChangedEventArgs.cs
- WindowsFormsHelpers.cs
- PresentationSource.cs
- MoveSizeWinEventHandler.cs
- ActivitiesCollection.cs
- Propagator.JoinPropagator.cs
- UnionExpr.cs
- RunWorkerCompletedEventArgs.cs
- OdbcErrorCollection.cs
- ParseNumbers.cs
- PropertyRecord.cs
- DataGridViewComboBoxEditingControl.cs
- AuthenticatedStream.cs
- PathStreamGeometryContext.cs
- NativeMethods.cs
- BinaryParser.cs
- GenerateTemporaryTargetAssembly.cs
- RouteCollection.cs
- LineVisual.cs
- ConfigurationStrings.cs
- RevocationPoint.cs
- BrowsableAttribute.cs
- DesignerRegion.cs
- CodeTypeDeclarationCollection.cs
- StatusStrip.cs
- AspCompat.cs
- ProxyHwnd.cs
- SafeMILHandleMemoryPressure.cs
- TypeToken.cs
- SqlVisitor.cs
- OleDbFactory.cs
- SoapSchemaExporter.cs
- ApplicationServiceHelper.cs
- RequestQueue.cs
- TagPrefixAttribute.cs
- HandlerBase.cs
- DoubleCollectionValueSerializer.cs
- RoutedEventArgs.cs
- XmlTextWriter.cs
- FormViewInsertedEventArgs.cs
- XmlChildNodes.cs
- SchemaElementDecl.cs
- SiteMapNodeCollection.cs
- _TransmitFileOverlappedAsyncResult.cs
- ComponentChangedEvent.cs
- FunctionMappingTranslator.cs
- WindowHideOrCloseTracker.cs
- TrackingExtract.cs
- BCLDebug.cs
- SkipQueryOptionExpression.cs
- DynamicPropertyReader.cs
- DotAtomReader.cs
- ToolStripPanelCell.cs
- OutputCacheProfile.cs
- CollectionBuilder.cs
- OpenFileDialog.cs
- AppDomainResourcePerfCounters.cs
- ColorConvertedBitmap.cs
- ActiveDocumentEvent.cs
- EastAsianLunisolarCalendar.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- ECDiffieHellman.cs
- CommandField.cs
- ImageFormatConverter.cs
- RangeEnumerable.cs
- ComEventsMethod.cs
- RadioButtonRenderer.cs
- Comparer.cs
- KeyPressEvent.cs
- TemplateLookupAction.cs
- PopupRoot.cs
- ClientScriptManager.cs
- RegexNode.cs
- NaturalLanguageHyphenator.cs
- RecognizedAudio.cs
- PixelFormats.cs
- SqlConnectionPoolProviderInfo.cs
- PropertyConverter.cs
- WebPartDisplayModeCancelEventArgs.cs
- ObjectStateManager.cs
- WindowsFormsHelpers.cs
- ResXFileRef.cs
- XmlSchemaAppInfo.cs
- ServicePoint.cs
- CellLabel.cs