Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- SaveFileDialog.cs
- Vector.cs
- BinaryFormatter.cs
- SoapIncludeAttribute.cs
- CodeNamespaceImport.cs
- ZeroOpNode.cs
- CryptoProvider.cs
- GroupDescription.cs
- SerialPort.cs
- DataControlPagerLinkButton.cs
- CompoundFileStorageReference.cs
- DateTimeConstantAttribute.cs
- Panel.cs
- FrameAutomationPeer.cs
- ByteStack.cs
- EntryPointNotFoundException.cs
- ObjectViewFactory.cs
- SecurityHelper.cs
- ObjectSpanRewriter.cs
- XmlWellformedWriter.cs
- DefaultBinder.cs
- ServiceDebugBehavior.cs
- WebScriptServiceHost.cs
- PrintPageEvent.cs
- TrustSection.cs
- DBCSCodePageEncoding.cs
- BCLDebug.cs
- CustomValidator.cs
- StyleCollectionEditor.cs
- WindowShowOrOpenTracker.cs
- FilterUserControlBase.cs
- RangeValidator.cs
- TextEndOfSegment.cs
- PathTooLongException.cs
- Rfc2898DeriveBytes.cs
- AssociationType.cs
- MessageSmuggler.cs
- PathSegmentCollection.cs
- ModelItemExtensions.cs
- StringSource.cs
- MenuItem.cs
- Certificate.cs
- DecoderFallback.cs
- SqlReorderer.cs
- LazyTextWriterCreator.cs
- SQLBytesStorage.cs
- Empty.cs
- Win32.cs
- MethodBuilderInstantiation.cs
- PackagePart.cs
- Membership.cs
- ImageListUtils.cs
- ShaperBuffers.cs
- XsltOutput.cs
- Font.cs
- ScriptComponentDescriptor.cs
- TargetControlTypeCache.cs
- StorageMappingFragment.cs
- SpeechRecognizer.cs
- ObjectHelper.cs
- DataGridViewCellCancelEventArgs.cs
- RawStylusActions.cs
- SimpleParser.cs
- EntityDataSourceContextCreatingEventArgs.cs
- _TLSstream.cs
- PathData.cs
- PresentationAppDomainManager.cs
- BitmapEffectInputData.cs
- HorizontalAlignConverter.cs
- ObjectManager.cs
- SessionParameter.cs
- ExtendedProperty.cs
- XmlDataSourceNodeDescriptor.cs
- StateRuntime.cs
- CacheOutputQuery.cs
- CompositeTypefaceMetrics.cs
- ContractUtils.cs
- AnnotationStore.cs
- MatrixIndependentAnimationStorage.cs
- IdentityModelStringsVersion1.cs
- LogReserveAndAppendState.cs
- TreeViewItemAutomationPeer.cs
- SchemaConstraints.cs
- Timer.cs
- DrawingGroup.cs
- ResetableIterator.cs
- RegexGroupCollection.cs
- Soap12ServerProtocol.cs
- RedirectionProxy.cs
- ActivityInstance.cs
- SimpleHandlerBuildProvider.cs
- LoadItemsEventArgs.cs
- XmlSchemaInfo.cs
- BindToObject.cs
- NullableFloatSumAggregationOperator.cs
- EndpointBehaviorElement.cs
- ExpressionContext.cs
- Int32CollectionValueSerializer.cs
- CompilerCollection.cs
- HandledEventArgs.cs