Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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(); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// 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
- SelectionWordBreaker.cs
- ColumnClickEvent.cs
- ListViewItem.cs
- TableCellCollection.cs
- ZipIOBlockManager.cs
- WindowsPrincipal.cs
- InputMethodStateChangeEventArgs.cs
- SqlExpander.cs
- DBSqlParserTableCollection.cs
- TaiwanLunisolarCalendar.cs
- ObjectTag.cs
- FontSource.cs
- WindowsFormsSynchronizationContext.cs
- wmiprovider.cs
- ImageListStreamer.cs
- ContentOnlyMessage.cs
- ScriptIgnoreAttribute.cs
- PenContext.cs
- BitmapMetadataEnumerator.cs
- DrawToolTipEventArgs.cs
- ObjectSecurity.cs
- XmlArrayAttribute.cs
- UrlPropertyAttribute.cs
- DynamicPropertyHolder.cs
- DeclarativeCatalogPartDesigner.cs
- Viewport3DAutomationPeer.cs
- MemberAccessException.cs
- ScalarOps.cs
- ThemeableAttribute.cs
- HashCodeCombiner.cs
- ItemList.cs
- MessageSecurityOverTcp.cs
- DataSet.cs
- EditorZoneBase.cs
- Convert.cs
- LocalIdCollection.cs
- AssemblyName.cs
- LastQueryOperator.cs
- SoapInteropTypes.cs
- FieldToken.cs
- TagMapInfo.cs
- KeyValueInternalCollection.cs
- Cursors.cs
- XmlnsCache.cs
- TableCell.cs
- UmAlQuraCalendar.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- DataGridLengthConverter.cs
- DataQuery.cs
- ChtmlTextWriter.cs
- MemberDescriptor.cs
- QilDataSource.cs
- HttpListenerException.cs
- Policy.cs
- Soap.cs
- ToolStripDropDownDesigner.cs
- XmlReaderSettings.cs
- DummyDataSource.cs
- GenericAuthenticationEventArgs.cs
- ScrollBarAutomationPeer.cs
- HtmlElementEventArgs.cs
- PageClientProxyGenerator.cs
- DefaultBindingPropertyAttribute.cs
- SoapHeader.cs
- StylusEditingBehavior.cs
- XmlSerializationWriter.cs
- FixedSchema.cs
- DropSource.cs
- EventHandlerList.cs
- RegexGroupCollection.cs
- Substitution.cs
- bindurihelper.cs
- PersistNameAttribute.cs
- SizeChangedInfo.cs
- PrintController.cs
- GenerateTemporaryTargetAssembly.cs
- WorkflowRuntimeServiceElementCollection.cs
- x509utils.cs
- SelectingProviderEventArgs.cs
- PointLightBase.cs
- SiteMapDataSourceDesigner.cs
- TextEffectCollection.cs
- SiteMembershipCondition.cs
- GlobalItem.cs
- CopyOfAction.cs
- CodeLinePragma.cs
- EnumerableCollectionView.cs
- TextLineBreak.cs
- DispatcherExceptionEventArgs.cs
- DesignerSerializationVisibilityAttribute.cs
- PersistChildrenAttribute.cs
- MessageSecurityOverTcp.cs
- SafeThemeHandle.cs
- Timer.cs
- AnnouncementDispatcherAsyncResult.cs
- ObjectManager.cs
- ValidationRuleCollection.cs
- DataSourceConverter.cs
- addressfiltermode.cs
- AutoGeneratedFieldProperties.cs