Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / ErrorRuntimeConfig.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DetailsViewInsertedEventArgs.cs
- StorageComplexTypeMapping.cs
- LastQueryOperator.cs
- TextTreeNode.cs
- odbcmetadatacolumnnames.cs
- HighlightVisual.cs
- ZoneMembershipCondition.cs
- ExceptionHandler.cs
- DirtyTextRange.cs
- DataRecord.cs
- Win32PrintDialog.cs
- MarshalDirectiveException.cs
- Vector3D.cs
- SiteMap.cs
- SymmetricAlgorithm.cs
- WinEventWrap.cs
- TransactedReceiveScope.cs
- KeyFrames.cs
- CanonicalXml.cs
- SpellCheck.cs
- StandardOleMarshalObject.cs
- XmlSchemaSimpleTypeUnion.cs
- DrawingContextWalker.cs
- FrameworkElementFactoryMarkupObject.cs
- WmlListAdapter.cs
- DesignerImageAdapter.cs
- GenericsNotImplementedException.cs
- DynamicRendererThreadManager.cs
- DataSourceCacheDurationConverter.cs
- HuffmanTree.cs
- DataTableClearEvent.cs
- FontInfo.cs
- LogArchiveSnapshot.cs
- GridView.cs
- XomlDesignerLoader.cs
- HeaderedItemsControl.cs
- ToolStripContainer.cs
- counter.cs
- Padding.cs
- ValidatingPropertiesEventArgs.cs
- KoreanLunisolarCalendar.cs
- OutOfMemoryException.cs
- RemotingAttributes.cs
- ClientSettingsSection.cs
- DataGridViewCellCollection.cs
- AttributeCollection.cs
- ReachBasicContext.cs
- SelectingProviderEventArgs.cs
- SystemTcpConnection.cs
- TransportChannelFactory.cs
- Interlocked.cs
- BindingMemberInfo.cs
- ChangesetResponse.cs
- MultiTargetingUtil.cs
- CurrentChangingEventManager.cs
- TcpConnectionPoolSettings.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- DataObject.cs
- ServiceContractListItemList.cs
- BindStream.cs
- TextChange.cs
- ImageSource.cs
- SaveFileDialog.cs
- SettingsProperty.cs
- userdatakeys.cs
- ConfigurationManagerHelperFactory.cs
- ContractMapping.cs
- NodeLabelEditEvent.cs
- EntityViewContainer.cs
- ExcCanonicalXml.cs
- DrawingBrush.cs
- SubMenuStyle.cs
- DiagnosticsConfigurationHandler.cs
- Convert.cs
- WebBrowserHelper.cs
- Rijndael.cs
- FileDialog.cs
- XmlCharType.cs
- DefaultValueAttribute.cs
- FixedPageAutomationPeer.cs
- OutputScope.cs
- TreeWalkHelper.cs
- List.cs
- ListBindingHelper.cs
- DateTimeUtil.cs
- WindowsFormsEditorServiceHelper.cs
- JsonFormatReaderGenerator.cs
- SqlServices.cs
- ArraySet.cs
- newitemfactory.cs
- COM2IProvidePropertyBuilderHandler.cs
- Int32Collection.cs
- QilParameter.cs
- Accessible.cs
- ControlEvent.cs
- HandledEventArgs.cs
- Validator.cs
- QueryExpression.cs
- StandardCommands.cs
- ObjectConverter.cs