Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- PublisherIdentityPermission.cs
- CompilationUnit.cs
- DataBoundControl.cs
- GenericAuthenticationEventArgs.cs
- TableCell.cs
- CompilationUnit.cs
- BooleanSwitch.cs
- StringInfo.cs
- ChannelManager.cs
- Function.cs
- IItemProperties.cs
- AuthenticatingEventArgs.cs
- UpDownBase.cs
- DataGridViewRowConverter.cs
- DateTimeAutomationPeer.cs
- ToolStripCustomTypeDescriptor.cs
- UrlRoutingHandler.cs
- Oid.cs
- DragSelectionMessageFilter.cs
- ScriptResourceInfo.cs
- TextRange.cs
- UTF8Encoding.cs
- EntityClassGenerator.cs
- KeyTime.cs
- TableColumn.cs
- MenuCommand.cs
- SqlPersonalizationProvider.cs
- OdbcConnectionHandle.cs
- xmlsaver.cs
- StorageModelBuildProvider.cs
- TCPClient.cs
- DbParameterCollectionHelper.cs
- ComponentGlyph.cs
- XPathQueryGenerator.cs
- MemoryResponseElement.cs
- Size3D.cs
- InternalCache.cs
- MultiAsyncResult.cs
- DesignerForm.cs
- InheritanceAttribute.cs
- DifferencingCollection.cs
- ObjectSecurityT.cs
- GridViewUpdatedEventArgs.cs
- HttpCapabilitiesBase.cs
- KeyedByTypeCollection.cs
- DecimalMinMaxAggregationOperator.cs
- ToolboxSnapDragDropEventArgs.cs
- TextServicesHost.cs
- SliderAutomationPeer.cs
- TargetPerspective.cs
- XmlRootAttribute.cs
- IteratorFilter.cs
- DefaultBinder.cs
- DataGridViewColumnTypePicker.cs
- DeviceSpecificDesigner.cs
- URLString.cs
- InternalConfigRoot.cs
- CorePropertiesFilter.cs
- safex509handles.cs
- nulltextnavigator.cs
- UserInitiatedNavigationPermission.cs
- BinaryCommonClasses.cs
- SerialErrors.cs
- UInt64Storage.cs
- BorderGapMaskConverter.cs
- CurrentChangingEventManager.cs
- SolidColorBrush.cs
- TransformerTypeCollection.cs
- ConfigurationPropertyAttribute.cs
- LicenseManager.cs
- PiiTraceSource.cs
- InstanceLockQueryResult.cs
- BezierSegment.cs
- XmlEntityReference.cs
- RightNameExpirationInfoPair.cs
- SqlConnectionString.cs
- RectangleGeometry.cs
- Win32PrintDialog.cs
- ClrPerspective.cs
- Hashtable.cs
- ResourceAssociationType.cs
- URLEditor.cs
- cookieexception.cs
- QualifiedId.cs
- BindingContext.cs
- Int32.cs
- CompositeDataBoundControl.cs
- ZoneButton.cs
- ParamArrayAttribute.cs
- ControlCachePolicy.cs
- SqlRowUpdatingEvent.cs
- ContextStaticAttribute.cs
- HwndSourceKeyboardInputSite.cs
- NativeMethods.cs
- UnsafeCollabNativeMethods.cs
- DispatchWrapper.cs
- ObjectTypeMapping.cs
- JapaneseCalendar.cs
- CreatingCookieEventArgs.cs
- XamlReader.cs