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
- SafeNativeMethodsOther.cs
- DecimalFormatter.cs
- SelectionUIService.cs
- TemplatedMailWebEventProvider.cs
- ClusterUtils.cs
- TraceSource.cs
- DWriteFactory.cs
- NumberFormatInfo.cs
- SoapSchemaExporter.cs
- CollectionCodeDomSerializer.cs
- AutoGeneratedFieldProperties.cs
- IdleTimeoutMonitor.cs
- SecurityException.cs
- ConfigPathUtility.cs
- SerializationStore.cs
- IDReferencePropertyAttribute.cs
- HttpServerChannel.cs
- StylusTip.cs
- FaultFormatter.cs
- VersionedStream.cs
- Command.cs
- SettingsPropertyValueCollection.cs
- BitmapSource.cs
- XmlQueryTypeFactory.cs
- CellParagraph.cs
- QueueTransferProtocol.cs
- RoutedCommand.cs
- PathFigureCollectionValueSerializer.cs
- DataGridViewColumnCollection.cs
- ArrangedElementCollection.cs
- GZipDecoder.cs
- SharedPerformanceCounter.cs
- WebServiceHandlerFactory.cs
- ReadOnlyDataSourceView.cs
- counter.cs
- ColorIndependentAnimationStorage.cs
- DynamicMethod.cs
- ScriptRegistrationManager.cs
- ScriptReference.cs
- DoubleAnimationUsingKeyFrames.cs
- BrushValueSerializer.cs
- ParameterModifier.cs
- SoapAttributeOverrides.cs
- Vector.cs
- GrammarBuilderWildcard.cs
- ColumnMapVisitor.cs
- CharAnimationBase.cs
- CountdownEvent.cs
- SiteMapNodeItemEventArgs.cs
- LongMinMaxAggregationOperator.cs
- PageThemeBuildProvider.cs
- _ConnectOverlappedAsyncResult.cs
- VScrollProperties.cs
- ServiceBuildProvider.cs
- ComponentGuaranteesAttribute.cs
- DesignerActionTextItem.cs
- OracleColumn.cs
- XmlDocumentFragment.cs
- SchemaType.cs
- RemoteTokenFactory.cs
- shaper.cs
- HtmlInputText.cs
- SafeProcessHandle.cs
- FileLevelControlBuilderAttribute.cs
- EventlogProvider.cs
- FormsAuthenticationModule.cs
- SqlFileStream.cs
- DebugView.cs
- SecurityContext.cs
- SmiRequestExecutor.cs
- WebConfigurationManager.cs
- TextTreeExtractElementUndoUnit.cs
- WindowHideOrCloseTracker.cs
- TextSpanModifier.cs
- FileVersionInfo.cs
- SystemFonts.cs
- ExtendedProtectionPolicy.cs
- CreateSequenceResponse.cs
- LocalizableResourceBuilder.cs
- BindingListCollectionView.cs
- TemplateBindingExpressionConverter.cs
- DetailsView.cs
- ConfigXmlComment.cs
- Expressions.cs
- ImageSource.cs
- CounterSetInstance.cs
- ProfileGroupSettingsCollection.cs
- ContainerUtilities.cs
- followingquery.cs
- ExitEventArgs.cs
- Receive.cs
- SecurityTokenAuthenticator.cs
- SqlWriter.cs
- DataSetUtil.cs
- ACL.cs
- ActiveXHelper.cs
- MethodInfo.cs
- EntityDataReader.cs
- FixedFindEngine.cs
- ProgramPublisher.cs