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
- OutOfMemoryException.cs
- Header.cs
- Shape.cs
- PowerModeChangedEventArgs.cs
- TextFormatterHost.cs
- RelationshipEntry.cs
- MobileComponentEditorPage.cs
- CharUnicodeInfo.cs
- PocoPropertyAccessorStrategy.cs
- MetadataPropertyCollection.cs
- FacetDescriptionElement.cs
- ValueUnavailableException.cs
- PeerCollaboration.cs
- InvariantComparer.cs
- _Semaphore.cs
- ButtonBaseAutomationPeer.cs
- XamlSerializerUtil.cs
- BrowserCapabilitiesCodeGenerator.cs
- MeshGeometry3D.cs
- HwndHostAutomationPeer.cs
- SecureUICommand.cs
- BinaryMethodMessage.cs
- httpserverutility.cs
- ByteAnimationUsingKeyFrames.cs
- HwndSourceKeyboardInputSite.cs
- BitmapEffectInput.cs
- PolyLineSegment.cs
- ChangeBlockUndoRecord.cs
- ReadonlyMessageFilter.cs
- ConsoleCancelEventArgs.cs
- QueryCreatedEventArgs.cs
- DbDataSourceEnumerator.cs
- Debug.cs
- UdpConstants.cs
- BulletChrome.cs
- SpellerHighlightLayer.cs
- WebHttpSecurityModeHelper.cs
- StringToken.cs
- WebBrowsableAttribute.cs
- Button.cs
- PanelContainerDesigner.cs
- Trustee.cs
- ServiceParser.cs
- ActiveXMessageFormatter.cs
- StorageEntityTypeMapping.cs
- CurrencyWrapper.cs
- ReadOnlyNameValueCollection.cs
- OrderingExpression.cs
- Menu.cs
- EtwProvider.cs
- QueueException.cs
- WebPartEventArgs.cs
- IssuanceLicense.cs
- StylusPoint.cs
- CqlWriter.cs
- FlowSwitch.cs
- DataGridViewComboBoxCell.cs
- BindingValueChangedEventArgs.cs
- CodeDomDesignerLoader.cs
- EndpointInstanceProvider.cs
- DataGrid.cs
- MbpInfo.cs
- InvalidEnumArgumentException.cs
- Timer.cs
- XmlSchemaRedefine.cs
- XmlSchemaSimpleTypeRestriction.cs
- FixedPage.cs
- CreateParams.cs
- RemotingSurrogateSelector.cs
- ToolStripGrip.cs
- PlacementWorkspace.cs
- RuntimeVariablesExpression.cs
- ResourceExpressionBuilder.cs
- TextViewBase.cs
- SrgsOneOf.cs
- DataSourceSerializationException.cs
- RoleGroupCollection.cs
- DebugTracing.cs
- HttpClientCertificate.cs
- StackSpiller.Generated.cs
- AssertFilter.cs
- TextPointerBase.cs
- ReaderWriterLock.cs
- TableRowCollection.cs
- SmtpNetworkElement.cs
- DelegateSerializationHolder.cs
- Compiler.cs
- KeyboardEventArgs.cs
- ViewStateModeByIdAttribute.cs
- DesignTimeParseData.cs
- mactripleDES.cs
- PathGeometry.cs
- RadioButton.cs
- TagMapCollection.cs
- TableItemStyle.cs
- ParseElementCollection.cs
- DesignConnectionCollection.cs
- HttpListenerException.cs
- Vector.cs
- OleDbPropertySetGuid.cs