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
- XmlSchemaProviderAttribute.cs
- SizeAnimationUsingKeyFrames.cs
- BinHexEncoder.cs
- JavaScriptSerializer.cs
- FrameworkTemplate.cs
- NavigatingCancelEventArgs.cs
- IPGlobalProperties.cs
- DataGridColumnReorderingEventArgs.cs
- DrawingDrawingContext.cs
- Vector.cs
- SettingsBindableAttribute.cs
- GenericTypeParameterBuilder.cs
- ProcessModelInfo.cs
- SqlDataSourceView.cs
- CodeStatement.cs
- Vector3DCollectionValueSerializer.cs
- PointLightBase.cs
- SafeUserTokenHandle.cs
- TextTrailingCharacterEllipsis.cs
- UrlMapping.cs
- XmlCharType.cs
- ScrollData.cs
- GridView.cs
- XmlMemberMapping.cs
- RowTypePropertyElement.cs
- XhtmlTextWriter.cs
- StatusBar.cs
- ItemCheckedEvent.cs
- ExecutionContext.cs
- PauseStoryboard.cs
- XmlDataSource.cs
- PermissionListSet.cs
- StructuredTypeEmitter.cs
- EventHandlersStore.cs
- SignatureHelper.cs
- WindowsFormsHostPropertyMap.cs
- PrivacyNoticeBindingElement.cs
- SmtpNtlmAuthenticationModule.cs
- QilFunction.cs
- HttpResponse.cs
- ControlValuePropertyAttribute.cs
- XmlTextEncoder.cs
- SelectionRange.cs
- ImagingCache.cs
- ScrollItemProviderWrapper.cs
- StringPropertyBuilder.cs
- UIInitializationException.cs
- HttpValueCollection.cs
- PasswordTextContainer.cs
- JournalEntry.cs
- ActivityCodeDomReferenceService.cs
- TextContainerChangeEventArgs.cs
- BufferedGraphicsManager.cs
- RawAppCommandInputReport.cs
- MeasureItemEvent.cs
- PackageRelationshipCollection.cs
- StringArrayConverter.cs
- SiteMapHierarchicalDataSourceView.cs
- LinkedResource.cs
- IDReferencePropertyAttribute.cs
- SqlDuplicator.cs
- SoapBinding.cs
- Hex.cs
- PiiTraceSource.cs
- PEFileReader.cs
- HttpCacheParams.cs
- JournalEntry.cs
- QilFactory.cs
- XmlSerializer.cs
- SmtpNtlmAuthenticationModule.cs
- MarkupCompiler.cs
- GraphicsContainer.cs
- SchemaLookupTable.cs
- DocumentViewerBaseAutomationPeer.cs
- FormViewRow.cs
- TdsValueSetter.cs
- DefaultWorkflowTransactionService.cs
- Validator.cs
- EmbeddedObject.cs
- SchemaHelper.cs
- XmlSchemaSearchPattern.cs
- UrlMappingsSection.cs
- AuthenticationModuleElementCollection.cs
- Sorting.cs
- AnonymousIdentificationModule.cs
- VectorAnimationBase.cs
- mda.cs
- Exceptions.cs
- SymmetricCryptoHandle.cs
- ControlCachePolicy.cs
- RoutedUICommand.cs
- HttpTransportElement.cs
- TraceLog.cs
- Part.cs
- SetterBaseCollection.cs
- HttpListenerContext.cs
- PackageFilter.cs
- ParallelForEach.cs
- RelatedView.cs
- FileIOPermission.cs