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
- ServicePointManager.cs
- DataObjectAttribute.cs
- ImportRequest.cs
- ProgressPage.cs
- PromptEventArgs.cs
- WebPartZoneCollection.cs
- StringDictionary.cs
- ClientApiGenerator.cs
- EventRoute.cs
- ClientScriptManager.cs
- ScrollViewerAutomationPeer.cs
- ZipPackage.cs
- DesignerVerbCollection.cs
- ResourceReader.cs
- GeneralTransform2DTo3DTo2D.cs
- InputLangChangeEvent.cs
- SqlDataSource.cs
- PerformanceCounters.cs
- PolicyReader.cs
- WebServiceFault.cs
- QilSortKey.cs
- HttpValueCollection.cs
- PartitionResolver.cs
- DesignerActionGlyph.cs
- EdmError.cs
- HttpWebResponse.cs
- Script.cs
- MsdtcClusterUtils.cs
- DetailsViewRow.cs
- BasicHttpSecurityElement.cs
- ColumnPropertiesGroup.cs
- EventlogProvider.cs
- Queue.cs
- IgnoreSection.cs
- TextFragmentEngine.cs
- PolyBezierSegmentFigureLogic.cs
- KnownColorTable.cs
- IndicShape.cs
- TemplateApplicationHelper.cs
- ProxyFragment.cs
- WebPartEditorOkVerb.cs
- SafeFileMappingHandle.cs
- DataSvcMapFileSerializer.cs
- WindowsListViewItemStartMenu.cs
- PowerStatus.cs
- XmlSchemaException.cs
- RadioButtonStandardAdapter.cs
- BamlResourceSerializer.cs
- ObservableDictionary.cs
- ImageKeyConverter.cs
- RuntimeWrappedException.cs
- CatalogUtil.cs
- Trace.cs
- DependencyObjectProvider.cs
- DebugView.cs
- DependencyPropertyKey.cs
- BamlRecordWriter.cs
- WindowsFont.cs
- DbConnectionPoolCounters.cs
- IListConverters.cs
- AspCompat.cs
- MbpInfo.cs
- DataStorage.cs
- ISessionStateStore.cs
- SqlDataSourceConfigureSortForm.cs
- Unit.cs
- MsmqIntegrationProcessProtocolHandler.cs
- TableSectionStyle.cs
- CreateInstanceBinder.cs
- ExpressionBindingCollection.cs
- Paragraph.cs
- InfoCardSymmetricCrypto.cs
- TypeSystem.cs
- TaiwanCalendar.cs
- SqlHelper.cs
- RegisteredScript.cs
- ContainerTracking.cs
- MethodBuilder.cs
- DES.cs
- MailHeaderInfo.cs
- iisPickupDirectory.cs
- OrderingExpression.cs
- Speller.cs
- ContentWrapperAttribute.cs
- EmptyImpersonationContext.cs
- ApplicationGesture.cs
- Accessors.cs
- SystemNetworkInterface.cs
- InternalPolicyElement.cs
- ClassImporter.cs
- FieldCollectionEditor.cs
- TextCharacters.cs
- SectionInput.cs
- CriticalHandle.cs
- SQLChars.cs
- ProcessInfo.cs
- ParagraphResult.cs
- WpfPayload.cs
- CaretElement.cs
- ServiceOperation.cs