Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- SimpleWebHandlerParser.cs
- wgx_exports.cs
- KeyEventArgs.cs
- XmlAttribute.cs
- KeyTime.cs
- XmlCountingReader.cs
- TiffBitmapDecoder.cs
- TabControlCancelEvent.cs
- TypeContext.cs
- TextCompositionManager.cs
- SerializationStore.cs
- BinaryWriter.cs
- InvokeSchedule.cs
- TypeLoadException.cs
- uribuilder.cs
- MexHttpsBindingElement.cs
- IProducerConsumerCollection.cs
- BindingMAnagerBase.cs
- StylusPointPropertyUnit.cs
- precedingsibling.cs
- HttpRequest.cs
- SqlCacheDependencyDatabaseCollection.cs
- HttpRuntimeSection.cs
- KnownTypeDataContractResolver.cs
- StorageConditionPropertyMapping.cs
- BigInt.cs
- ExpressionNode.cs
- AppModelKnownContentFactory.cs
- InstanceValue.cs
- WhitespaceReader.cs
- ButtonBase.cs
- PrintController.cs
- CachedPathData.cs
- PartialCachingAttribute.cs
- AttachedPropertyBrowsableAttribute.cs
- OdbcCommandBuilder.cs
- ExceptionUtil.cs
- FontUnitConverter.cs
- UdpContractFilterBehavior.cs
- StaticTextPointer.cs
- AsymmetricSignatureDeformatter.cs
- MemberCollection.cs
- VisualState.cs
- MarkupCompiler.cs
- DispatcherSynchronizationContext.cs
- ResponseBodyWriter.cs
- DetailsViewDeleteEventArgs.cs
- RequestDescription.cs
- CustomWebEventKey.cs
- HandleCollector.cs
- TriggerBase.cs
- InvalidComObjectException.cs
- AsyncPostBackErrorEventArgs.cs
- TextEditorParagraphs.cs
- ComboBoxRenderer.cs
- HotSpotCollection.cs
- GenericAuthenticationEventArgs.cs
- AsnEncodedData.cs
- SeekStoryboard.cs
- HandleCollector.cs
- RadialGradientBrush.cs
- login.cs
- ConnectorMovedEventArgs.cs
- SchemaTableOptionalColumn.cs
- WebHttpElement.cs
- SamlSecurityToken.cs
- LogEntry.cs
- WorkflowMessageEventHandler.cs
- MemberInfoSerializationHolder.cs
- ActivityXamlServices.cs
- OdbcConnectionString.cs
- OptimalBreakSession.cs
- ImageBrush.cs
- Label.cs
- SynchronizingStream.cs
- ScriptServiceAttribute.cs
- Graph.cs
- ConnectorEditor.cs
- GraphicsPath.cs
- ResourceSet.cs
- FragmentNavigationEventArgs.cs
- Root.cs
- SingleAnimationBase.cs
- CqlGenerator.cs
- AccessorTable.cs
- DesignerSerializerAttribute.cs
- MgmtConfigurationRecord.cs
- RTLAwareMessageBox.cs
- OptimisticConcurrencyException.cs
- RowCache.cs
- TdsParserStateObject.cs
- BaseCodeDomTreeGenerator.cs
- String.cs
- ObjectListFieldsPage.cs
- Adorner.cs
- RequestQueue.cs
- TrackingStringDictionary.cs
- _ShellExpression.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- DependencyObjectProvider.cs