Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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. // //----------------------------------------------------------------------------- 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventToken.cs
- RequiredAttributeAttribute.cs
- ExtensionSurface.cs
- TaiwanCalendar.cs
- DataServiceResponse.cs
- Token.cs
- SizeConverter.cs
- OdbcConnectionFactory.cs
- FrameworkContentElement.cs
- ClientSettingsProvider.cs
- SynchronizationLockException.cs
- PropertyPathWorker.cs
- TimeZone.cs
- ValueSerializerAttribute.cs
- DataColumnChangeEvent.cs
- CapabilitiesState.cs
- Subtree.cs
- validationstate.cs
- ObjectDataSourceChooseTypePanel.cs
- GroupBox.cs
- WebHeaderCollection.cs
- OSEnvironmentHelper.cs
- LinkDescriptor.cs
- GlobalAllocSafeHandle.cs
- SurrogateEncoder.cs
- odbcmetadatacollectionnames.cs
- GeometryModel3D.cs
- AnchoredBlock.cs
- SortKey.cs
- MappingMetadataHelper.cs
- SelectedCellsCollection.cs
- CompiledAction.cs
- ParallelDesigner.cs
- SyndicationFeed.cs
- GroupQuery.cs
- System.Data_BID.cs
- Image.cs
- HttpListenerException.cs
- DataGridViewCellCollection.cs
- OptimalTextSource.cs
- BlockUIContainer.cs
- DesignerGenericWebPart.cs
- ContentOperations.cs
- ServerIdentity.cs
- PropertyMap.cs
- DataControlLinkButton.cs
- DefaultBinder.cs
- RC2CryptoServiceProvider.cs
- WebPartMenuStyle.cs
- WpfPayload.cs
- ConnectionPoolManager.cs
- BamlLocalizationDictionary.cs
- Int32.cs
- SectionRecord.cs
- ServiceObjectContainer.cs
- DiscoveryProxy.cs
- LocalTransaction.cs
- ImageSource.cs
- Style.cs
- AssertFilter.cs
- CompilerLocalReference.cs
- CSharpCodeProvider.cs
- MouseActionConverter.cs
- WebPartEventArgs.cs
- TypeDefinition.cs
- ColorConvertedBitmap.cs
- GridViewUpdateEventArgs.cs
- SID.cs
- DefinitionUpdate.cs
- UnauthorizedWebPart.cs
- RowUpdatedEventArgs.cs
- SecurityCriticalDataForSet.cs
- RoutedEventArgs.cs
- WinOEToolBoxItem.cs
- Connector.cs
- DataServiceConfiguration.cs
- TextDecorationUnitValidation.cs
- Rect3D.cs
- CollectionViewGroupInternal.cs
- DoubleConverter.cs
- XhtmlConformanceSection.cs
- CoreSwitches.cs
- ListItemParagraph.cs
- PassportAuthentication.cs
- CodeDirectoryCompiler.cs
- FragmentQueryProcessor.cs
- PenLineJoinValidation.cs
- ImageCollectionEditor.cs
- MDIWindowDialog.cs
- EntityDataSourceReferenceGroup.cs
- ListenerServiceInstallComponent.cs
- InitializingNewItemEventArgs.cs
- SRGSCompiler.cs
- Matrix.cs
- MouseWheelEventArgs.cs
- TextShapeableCharacters.cs
- TypeGeneratedEventArgs.cs
- CodeExpressionStatement.cs
- LocalizableAttribute.cs
- StrokeNode.cs