Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- BuildProviderAppliesToAttribute.cs
- KeyboardDevice.cs
- Rotation3DAnimationUsingKeyFrames.cs
- XmlRawWriterWrapper.cs
- xmlfixedPageInfo.cs
- HttpChannelBindingToken.cs
- WmlLabelAdapter.cs
- TextTreeRootTextBlock.cs
- DateTimeConstantAttribute.cs
- grammarelement.cs
- FormViewModeEventArgs.cs
- XmlNullResolver.cs
- MessageQueue.cs
- ObjectDataSourceView.cs
- QuadraticBezierSegment.cs
- QilParameter.cs
- SelectionEditingBehavior.cs
- CaseCqlBlock.cs
- DatagridviewDisplayedBandsData.cs
- GridViewColumnHeaderAutomationPeer.cs
- BitmapDownload.cs
- DynamicValidatorEventArgs.cs
- PathGradientBrush.cs
- ComboBoxItem.cs
- BrowserInteropHelper.cs
- MsmqHostedTransportManager.cs
- OneWayBindingElement.cs
- ColumnTypeConverter.cs
- TextServicesHost.cs
- EmissiveMaterial.cs
- DbParameterHelper.cs
- SqlCommandBuilder.cs
- HttpProfileBase.cs
- CopyAttributesAction.cs
- TypeDelegator.cs
- ButtonField.cs
- MessageAction.cs
- PagedDataSource.cs
- Panel.cs
- HierarchicalDataSourceControl.cs
- __Error.cs
- FixUpCollection.cs
- WpfXamlType.cs
- GridViewCellAutomationPeer.cs
- ParenExpr.cs
- PrintControllerWithStatusDialog.cs
- HeaderLabel.cs
- TextTreeUndo.cs
- ThaiBuddhistCalendar.cs
- DelegateTypeInfo.cs
- MeasurementDCInfo.cs
- RequestTimeoutManager.cs
- ObjectResult.cs
- Dispatcher.cs
- DebugView.cs
- InstanceHandle.cs
- Visitors.cs
- BooleanConverter.cs
- MediaSystem.cs
- elementinformation.cs
- baseaxisquery.cs
- ThrowHelper.cs
- GradientBrush.cs
- EncryptedType.cs
- ClipboardProcessor.cs
- WindowsGrip.cs
- CookielessHelper.cs
- XmlSchemaInferenceException.cs
- DiagnosticsConfiguration.cs
- UnsafeMethods.cs
- LexicalChunk.cs
- ChannelManagerHelpers.cs
- ThemeDictionaryExtension.cs
- TreeIterators.cs
- BamlCollectionHolder.cs
- NetworkInterface.cs
- ScriptModule.cs
- StrongName.cs
- UnsignedPublishLicense.cs
- String.cs
- CallId.cs
- CollectionChangedEventManager.cs
- Debugger.cs
- AuthenticationModuleElementCollection.cs
- XmlParserContext.cs
- ScriptManagerProxy.cs
- DispatcherExceptionFilterEventArgs.cs
- CodeBinaryOperatorExpression.cs
- PagedDataSource.cs
- TextDecorationCollectionConverter.cs
- hwndwrapper.cs
- CacheMode.cs
- XmlValueConverter.cs
- ImageBrush.cs
- GeneratedContractType.cs
- CollectionBase.cs
- listitem.cs
- DefaultTextStore.cs
- TimeSpan.cs
- DataSetMappper.cs