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
- CodeConstructor.cs
- DataListCommandEventArgs.cs
- SiteMapHierarchicalDataSourceView.cs
- SystemPens.cs
- ShapingWorkspace.cs
- RowTypeElement.cs
- FontClient.cs
- VectorCollection.cs
- RecognitionEventArgs.cs
- ColumnMapTranslator.cs
- ObjectToken.cs
- TypeNameHelper.cs
- FixedNode.cs
- TemplateBindingExtensionConverter.cs
- NotImplementedException.cs
- SessionStateItemCollection.cs
- SuppressMergeCheckAttribute.cs
- FixedSOMPage.cs
- TextParagraph.cs
- TraceData.cs
- XamlInt32CollectionSerializer.cs
- CompleteWizardStep.cs
- FormatVersion.cs
- BitmapData.cs
- SurrogateDataContract.cs
- DBNull.cs
- FormsAuthenticationCredentials.cs
- CalendarAutoFormat.cs
- OrderedDictionary.cs
- SchemaInfo.cs
- DrawToolTipEventArgs.cs
- EventLogStatus.cs
- EncodingDataItem.cs
- Dynamic.cs
- StylusPoint.cs
- MatchingStyle.cs
- AttributeQuery.cs
- ProtocolsConfigurationEntry.cs
- ReturnValue.cs
- HijriCalendar.cs
- CommonXSendMessage.cs
- WarningException.cs
- ButtonBase.cs
- PropertyInformation.cs
- _SSPISessionCache.cs
- _SingleItemRequestCache.cs
- PropertyOrder.cs
- EllipseGeometry.cs
- UpDownBase.cs
- RequestNavigateEventArgs.cs
- CustomBinding.cs
- FlowchartDesignerCommands.cs
- MultipleViewProviderWrapper.cs
- DataGridViewRowPostPaintEventArgs.cs
- HideDisabledControlAdapter.cs
- FormsAuthenticationCredentials.cs
- CellRelation.cs
- GridLengthConverter.cs
- NoPersistProperty.cs
- LinqDataSourceStatusEventArgs.cs
- PackageProperties.cs
- UndoManager.cs
- ExternalFile.cs
- TrackingMemoryStreamFactory.cs
- FunctionDetailsReader.cs
- Popup.cs
- FixedSOMTableCell.cs
- WSDualHttpSecurityMode.cs
- BuildProviderAppliesToAttribute.cs
- ResolvedKeyFrameEntry.cs
- KeyedHashAlgorithm.cs
- DefaultCommandConverter.cs
- ResXBuildProvider.cs
- GridViewUpdateEventArgs.cs
- RenderData.cs
- BulletedList.cs
- Constraint.cs
- ADMembershipUser.cs
- ObjectAnimationBase.cs
- LayoutEditorPart.cs
- RoutedEvent.cs
- TileBrush.cs
- SqlFlattener.cs
- StaticFileHandler.cs
- Hashtable.cs
- SafeMILHandle.cs
- COM2TypeInfoProcessor.cs
- HttpServerChannel.cs
- DefaultShape.cs
- OutputCacheSection.cs
- GenericsInstances.cs
- ChineseLunisolarCalendar.cs
- LinearQuaternionKeyFrame.cs
- IItemContainerGenerator.cs
- HttpDictionary.cs
- PackWebRequest.cs
- SqlProviderManifest.cs
- ExpressionEditorSheet.cs
- XamlToRtfWriter.cs
- PreparingEnlistment.cs