Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TransformedBitmap.cs
- NamedPermissionSet.cs
- PageBorderless.cs
- WindowsButton.cs
- BufferBuilder.cs
- MouseEvent.cs
- DataGridPagerStyle.cs
- IntegrationExceptionEventArgs.cs
- SqlCachedBuffer.cs
- WebPartManager.cs
- DetailsViewDeleteEventArgs.cs
- ExtensibleClassFactory.cs
- HeaderCollection.cs
- PageParserFilter.cs
- InfoCardSymmetricAlgorithm.cs
- LoadRetryStrategyFactory.cs
- OdbcEnvironmentHandle.cs
- Error.cs
- AllowedAudienceUriElementCollection.cs
- BinaryFormatterWriter.cs
- TogglePatternIdentifiers.cs
- Accessors.cs
- RequestBringIntoViewEventArgs.cs
- TargetControlTypeCache.cs
- MarkupExtensionReturnTypeAttribute.cs
- DefaultSection.cs
- TextStore.cs
- PackageProperties.cs
- FormViewUpdateEventArgs.cs
- InfoCardProofToken.cs
- ModifierKeysConverter.cs
- FactoryGenerator.cs
- TableRowGroupCollection.cs
- SingleAnimationBase.cs
- CurrencyWrapper.cs
- RectConverter.cs
- TabControlEvent.cs
- future.cs
- ZipIOExtraField.cs
- ForEachDesigner.xaml.cs
- Int32CAMarshaler.cs
- ParallelTimeline.cs
- AnnotationService.cs
- FreezableOperations.cs
- WorkflowMessageEventHandler.cs
- ProgressBar.cs
- FixedDocumentSequencePaginator.cs
- SvcMapFile.cs
- FormsAuthenticationCredentials.cs
- DesignerProperties.cs
- HttpPostedFileBase.cs
- SetState.cs
- MatrixTransform.cs
- SettingsSection.cs
- Int64AnimationUsingKeyFrames.cs
- PagesSection.cs
- WebPartVerbsEventArgs.cs
- XmlRootAttribute.cs
- ShowExpandedMultiValueConverter.cs
- MetricEntry.cs
- TableChangeProcessor.cs
- ToggleProviderWrapper.cs
- TextFormatterHost.cs
- LineProperties.cs
- ErrorHandler.cs
- ITreeGenerator.cs
- SelectedCellsCollection.cs
- ObjectResult.cs
- ReflectionTypeLoadException.cs
- ScriptBehaviorDescriptor.cs
- SymDocumentType.cs
- SqlMetaData.cs
- CompositeControl.cs
- OpenFileDialog.cs
- SchemaElementLookUpTableEnumerator.cs
- SafeUserTokenHandle.cs
- EtwTrace.cs
- WebPartHeaderCloseVerb.cs
- GregorianCalendar.cs
- DPAPIProtectedConfigurationProvider.cs
- ClientSettingsStore.cs
- ResourceSetExpression.cs
- WebHttpSecurityModeHelper.cs
- TraceHandler.cs
- _FixedSizeReader.cs
- PhysicalAddress.cs
- WebBrowserNavigatedEventHandler.cs
- sqlcontext.cs
- DesignerProperties.cs
- StdValidatorsAndConverters.cs
- TokenizerHelper.cs
- ThumbAutomationPeer.cs
- WindowsSspiNegotiation.cs
- AlternationConverter.cs
- ReadOnlyDataSource.cs
- SiteMapDataSource.cs
- TaskHelper.cs
- EncryptedXml.cs
- DATA_BLOB.cs
- SafeEventLogWriteHandle.cs