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
- fixedPageContentExtractor.cs
- DBAsyncResult.cs
- MarkupObject.cs
- EntityDataSourceWizardForm.cs
- DesignerCategoryAttribute.cs
- UntypedNullExpression.cs
- DecoratedNameAttribute.cs
- AttributeQuery.cs
- PrimitiveXmlSerializers.cs
- SignatureDescription.cs
- WindowsSlider.cs
- CompositeFontInfo.cs
- MultidimensionalArrayItemReference.cs
- SqlMethodCallConverter.cs
- ProxySimple.cs
- DecimalFormatter.cs
- SchemaEntity.cs
- AttributeUsageAttribute.cs
- UnsafeNativeMethods.cs
- RequestCachingSection.cs
- CalendarDateChangedEventArgs.cs
- TextStore.cs
- Vector.cs
- TextRangeEditLists.cs
- XmlSchemaComplexType.cs
- FileAuthorizationModule.cs
- DispatcherSynchronizationContext.cs
- DataControlPagerLinkButton.cs
- BufferedGraphicsContext.cs
- Inline.cs
- Link.cs
- ChangePasswordAutoFormat.cs
- ComboBox.cs
- ProfilePropertyNameValidator.cs
- PrintingPermissionAttribute.cs
- IssuanceLicense.cs
- ProcessModuleCollection.cs
- ScrollViewer.cs
- ThreadPool.cs
- SuppressMergeCheckAttribute.cs
- ActionItem.cs
- ByteBufferPool.cs
- ServiceProviders.cs
- HtmlWindowCollection.cs
- ConnectionPool.cs
- CommandBinding.cs
- ArrowControl.xaml.cs
- ExecutionPropertyManager.cs
- DivideByZeroException.cs
- TextServicesDisplayAttribute.cs
- NegotiateStream.cs
- OdbcConnectionOpen.cs
- ProviderSettingsCollection.cs
- WebBaseEventKeyComparer.cs
- SerialReceived.cs
- RadioButtonList.cs
- StaticSiteMapProvider.cs
- TreeIterator.cs
- RoleManagerEventArgs.cs
- OracleCommandBuilder.cs
- ReversePositionQuery.cs
- LinqDataSourceHelper.cs
- FontFamily.cs
- GeneralTransform3D.cs
- StreamUpdate.cs
- InputProcessorProfiles.cs
- UrlAuthFailedErrorFormatter.cs
- OutputWindow.cs
- HatchBrush.cs
- ModuleElement.cs
- ServerIdentity.cs
- ScriptControlManager.cs
- BaseDataList.cs
- XmlRootAttribute.cs
- DateTimeOffsetConverter.cs
- RC2CryptoServiceProvider.cs
- PagedDataSource.cs
- PrePrepareMethodAttribute.cs
- TextAnchor.cs
- DataGridViewRowCollection.cs
- ConstraintEnumerator.cs
- BinaryWriter.cs
- SmtpReplyReaderFactory.cs
- RouteValueExpressionBuilder.cs
- SystemEvents.cs
- SmiTypedGetterSetter.cs
- DynamicObject.cs
- XmlSchemaProviderAttribute.cs
- SiteMapNode.cs
- WebPartDescriptionCollection.cs
- CompiledQuery.cs
- ValueUtilsSmi.cs
- ProjectionQueryOptionExpression.cs
- VisualCollection.cs
- SafeNativeMethods.cs
- HttpConfigurationSystem.cs
- DataPagerFieldItem.cs
- TileModeValidation.cs
- BStrWrapper.cs
- AlternateViewCollection.cs