Code:
/ DotNET / DotNET / 8.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
- PropertyGeneratedEventArgs.cs
- Transform.cs
- GuidelineCollection.cs
- CheckPair.cs
- ReverseInheritProperty.cs
- AQNBuilder.cs
- SQLDecimalStorage.cs
- WindowsFormsLinkLabel.cs
- CompressionTransform.cs
- ObjectSet.cs
- TryLoadRunnableWorkflowCommand.cs
- StrokeRenderer.cs
- MemberProjectionIndex.cs
- Match.cs
- AutomationAttributeInfo.cs
- ArrayConverter.cs
- XmlAtomErrorReader.cs
- TaskExtensions.cs
- XDeferredAxisSource.cs
- RequestChannel.cs
- ConfigurationLockCollection.cs
- ExceptionHandlers.cs
- NestPullup.cs
- TranslateTransform.cs
- SqlDependencyUtils.cs
- WebPartAddingEventArgs.cs
- DataListCommandEventArgs.cs
- XmlSchemaSimpleContentExtension.cs
- CompilationUtil.cs
- TraceXPathNavigator.cs
- X509RecipientCertificateServiceElement.cs
- PeerNameRecord.cs
- SemaphoreFullException.cs
- BuildProvider.cs
- HMAC.cs
- TypeContext.cs
- BitmapEncoder.cs
- FieldBuilder.cs
- HitTestWithPointDrawingContextWalker.cs
- ListComponentEditor.cs
- Token.cs
- AsymmetricAlgorithm.cs
- FormViewDeleteEventArgs.cs
- SplitterPanel.cs
- CrossContextChannel.cs
- ScriptMethodAttribute.cs
- ISAPIRuntime.cs
- WebPartDisplayModeCancelEventArgs.cs
- AssemblyBuilderData.cs
- RequestNavigateEventArgs.cs
- Int32CollectionValueSerializer.cs
- SimpleTableProvider.cs
- PropertyConverter.cs
- XmlExpressionDumper.cs
- Soap.cs
- MimeTypeAttribute.cs
- RawStylusInput.cs
- COM2IPerPropertyBrowsingHandler.cs
- CookieHandler.cs
- ToolBarButtonDesigner.cs
- AssertUtility.cs
- BitmapCodecInfo.cs
- DispatcherExceptionFilterEventArgs.cs
- DataGridViewAccessibleObject.cs
- FormView.cs
- DBBindings.cs
- InputProcessorProfilesLoader.cs
- StringStorage.cs
- PointLight.cs
- DateTimeHelper.cs
- EncodingStreamWrapper.cs
- ComponentCache.cs
- DrawingContextWalker.cs
- TableCell.cs
- SubclassTypeValidatorAttribute.cs
- Errors.cs
- SqlMetaData.cs
- SafeLibraryHandle.cs
- MailHeaderInfo.cs
- LicenseException.cs
- OleAutBinder.cs
- EventLogPermissionAttribute.cs
- ByeOperationCD1AsyncResult.cs
- DataGridViewIntLinkedList.cs
- DataTemplate.cs
- EdmEntityTypeAttribute.cs
- ComponentGlyph.cs
- EditorPartCollection.cs
- PeerCollaborationPermission.cs
- Point3DAnimation.cs
- XmlDataSource.cs
- SizeAnimationClockResource.cs
- CheckedPointers.cs
- SoapReflector.cs
- PhysicalOps.cs
- Helper.cs
- PerformanceCounterLib.cs
- ParameterToken.cs
- ScrollContentPresenter.cs
- Transform3DGroup.cs