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
- RSAPKCS1SignatureDeformatter.cs
- CodeAccessPermission.cs
- HttpException.cs
- XmlSchemaChoice.cs
- RegexGroupCollection.cs
- SoapUnknownHeader.cs
- DataDesignUtil.cs
- ContextBase.cs
- RequiredAttributeAttribute.cs
- DocumentViewer.cs
- FloatMinMaxAggregationOperator.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- HwndSourceKeyboardInputSite.cs
- MouseButtonEventArgs.cs
- HttpHandlersSection.cs
- DesignerDataColumn.cs
- MsmqInputMessagePool.cs
- CapabilitiesSection.cs
- clipboard.cs
- ServiceAuthorizationBehavior.cs
- DateTimeUtil.cs
- FontNameEditor.cs
- TypeDescriptionProviderAttribute.cs
- ZipIOLocalFileHeader.cs
- MessagePropertyVariants.cs
- DictionaryManager.cs
- StateBag.cs
- PublisherIdentityPermission.cs
- IntellisenseTextBox.cs
- KoreanLunisolarCalendar.cs
- AudioFormatConverter.cs
- ChangeTracker.cs
- FrameworkTemplate.cs
- MethodExecutor.cs
- ButtonAutomationPeer.cs
- NoClickablePointException.cs
- _LoggingObject.cs
- XmlStreamStore.cs
- BufferManager.cs
- PartialCachingAttribute.cs
- SlipBehavior.cs
- MarkupObject.cs
- CodeSnippetExpression.cs
- JoinSymbol.cs
- Socket.cs
- SimpleHandlerBuildProvider.cs
- NameSpaceExtractor.cs
- NavigationWindow.cs
- WindowsComboBox.cs
- HTMLTagNameToTypeMapper.cs
- RenderData.cs
- ProtectedUri.cs
- CqlQuery.cs
- WebEncodingValidatorAttribute.cs
- DataGridRowAutomationPeer.cs
- AvTraceFormat.cs
- PageThemeBuildProvider.cs
- ProcessHostConfigUtils.cs
- SoundPlayerAction.cs
- TemplateBamlRecordReader.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- ByeOperationAsyncResult.cs
- Image.cs
- WebPartZoneBase.cs
- FileNameEditor.cs
- RemotingException.cs
- HttpCacheVary.cs
- DecimalSumAggregationOperator.cs
- EventMap.cs
- ExpressionLexer.cs
- Column.cs
- CheckPair.cs
- StringSorter.cs
- XmlSchemaChoice.cs
- TerminatorSinks.cs
- XmlDataContract.cs
- FontWeight.cs
- Thread.cs
- Border.cs
- Literal.cs
- CaretElement.cs
- UInt32.cs
- TypeGeneratedEventArgs.cs
- CollectionEditor.cs
- CommonGetThemePartSize.cs
- PeerInputChannel.cs
- _AutoWebProxyScriptHelper.cs
- TextServicesHost.cs
- ChannelHandler.cs
- MustUnderstandSoapException.cs
- ExcludeFromCodeCoverageAttribute.cs
- XmlSchemaFacet.cs
- SecurityResources.cs
- HtmlEmptyTagControlBuilder.cs
- TextRangeEditTables.cs
- UnsafeNativeMethods.cs
- XmlDomTextWriter.cs
- PerformanceCounterLib.cs
- ParserHooks.cs
- BaseAppDomainProtocolHandler.cs