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
- _UriTypeConverter.cs
- httpstaticobjectscollection.cs
- WorkflowItemsPresenter.cs
- HttpApplication.cs
- TransformConverter.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- FlowLayoutSettings.cs
- BitmapData.cs
- XmlStreamedByteStreamReader.cs
- AssertHelper.cs
- DayRenderEvent.cs
- SerialReceived.cs
- ErrorProvider.cs
- DataView.cs
- IgnoreFileBuildProvider.cs
- BrowserCapabilitiesCompiler.cs
- ListSortDescription.cs
- DbBuffer.cs
- PointConverter.cs
- SqlUDTStorage.cs
- MultipleViewProviderWrapper.cs
- Profiler.cs
- MimeFormImporter.cs
- TextEditorLists.cs
- DatatypeImplementation.cs
- FontCacheUtil.cs
- WorkflowEnvironment.cs
- ProtocolViolationException.cs
- XsdDuration.cs
- PageThemeParser.cs
- BufferModesCollection.cs
- TransformCryptoHandle.cs
- RadioButtonFlatAdapter.cs
- Utils.cs
- SmtpNtlmAuthenticationModule.cs
- IsolatedStorageFileStream.cs
- SimpleFieldTemplateFactory.cs
- ResolveNameEventArgs.cs
- RegistryConfigurationProvider.cs
- DataRelationPropertyDescriptor.cs
- ContainerControl.cs
- ClientBuildManagerCallback.cs
- X509Certificate.cs
- ClientApiGenerator.cs
- PrinterResolution.cs
- Win32SafeHandles.cs
- SoapProtocolImporter.cs
- DefinitionBase.cs
- CacheChildrenQuery.cs
- FlowPosition.cs
- CodeTypeParameterCollection.cs
- Span.cs
- UTF32Encoding.cs
- ValueType.cs
- CatalogZoneBase.cs
- PtsHelper.cs
- HttpCacheParams.cs
- DocumentViewerHelper.cs
- SatelliteContractVersionAttribute.cs
- ConfigurationStrings.cs
- CodeTypeConstructor.cs
- CodeThrowExceptionStatement.cs
- SqlCachedBuffer.cs
- AsymmetricAlgorithm.cs
- RegexMatchCollection.cs
- ProfileModule.cs
- Pens.cs
- SqlUserDefinedTypeAttribute.cs
- StylusTouchDevice.cs
- ArgumentException.cs
- ServiceBusyException.cs
- Margins.cs
- KnownTypesHelper.cs
- Polyline.cs
- XmlAttributeCollection.cs
- OdbcTransaction.cs
- FacetValues.cs
- GridViewDeletedEventArgs.cs
- EdmSchemaAttribute.cs
- BaseAsyncResult.cs
- CodeMethodMap.cs
- XmlAnyAttributeAttribute.cs
- StyleSheetComponentEditor.cs
- PropertySourceInfo.cs
- RedirectionProxy.cs
- DBConcurrencyException.cs
- ManifestResourceInfo.cs
- RecordManager.cs
- AspNetRouteServiceHttpHandler.cs
- Facet.cs
- Variant.cs
- ImageKeyConverter.cs
- Normalization.cs
- ServiceContractGenerationContext.cs
- MsmqInputMessagePool.cs
- XmlWriter.cs
- Thread.cs
- RijndaelManagedTransform.cs
- DocumentXPathNavigator.cs
- ConfigurationElementProperty.cs