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
- FunctionGenerator.cs
- ProfileModule.cs
- GeneralTransform3DGroup.cs
- ConfigXmlSignificantWhitespace.cs
- PrivilegeNotHeldException.cs
- LoginCancelEventArgs.cs
- PrePostDescendentsWalker.cs
- ErrorStyle.cs
- Int32AnimationUsingKeyFrames.cs
- _FtpDataStream.cs
- EditCommandColumn.cs
- GraphicsContainer.cs
- WebPartChrome.cs
- RSAProtectedConfigurationProvider.cs
- GeometryModel3D.cs
- IOException.cs
- RenderingBiasValidation.cs
- TdsParserHelperClasses.cs
- XmlSchemaAnyAttribute.cs
- OperationAbortedException.cs
- SystemTcpConnection.cs
- ConfigurationManagerHelper.cs
- VerticalAlignConverter.cs
- WebPartVerbCollection.cs
- Pointer.cs
- DBSqlParserTable.cs
- ConstructorExpr.cs
- InfoCardAsymmetricCrypto.cs
- BitmapEffectGroup.cs
- DriveInfo.cs
- cookieexception.cs
- ETagAttribute.cs
- SafeFindHandle.cs
- DragEventArgs.cs
- SqlError.cs
- EmitterCache.cs
- MainMenu.cs
- TypeValidationEventArgs.cs
- FixedSOMLineRanges.cs
- TextAction.cs
- ListView.cs
- ErrorLog.cs
- Wizard.cs
- TextRangeBase.cs
- XmlDocumentSchema.cs
- ScriptReference.cs
- GACIdentityPermission.cs
- Vector3DIndependentAnimationStorage.cs
- CharAnimationBase.cs
- StaticExtensionConverter.cs
- XmlIlVisitor.cs
- LinqDataSourceView.cs
- OdbcDataReader.cs
- MasterPageParser.cs
- XmlEncodedRawTextWriter.cs
- RIPEMD160.cs
- StateWorkerRequest.cs
- Polygon.cs
- WindowsScrollBar.cs
- CategoryGridEntry.cs
- TypeLibConverter.cs
- QueryableDataSourceView.cs
- DecimalConstantAttribute.cs
- FolderLevelBuildProvider.cs
- PointConverter.cs
- MenuItemStyleCollection.cs
- Multiply.cs
- ObjectComplexPropertyMapping.cs
- XmlCharCheckingReader.cs
- DependencyProperty.cs
- Message.cs
- FilteredSchemaElementLookUpTable.cs
- SplashScreenNativeMethods.cs
- TextBox.cs
- SymbolType.cs
- WebPartTracker.cs
- DataColumnMappingCollection.cs
- ContourSegment.cs
- StoryFragments.cs
- MiniParameterInfo.cs
- SuppressMergeCheckAttribute.cs
- ListViewGroup.cs
- ColumnMapTranslator.cs
- ProvidersHelper.cs
- DNS.cs
- XPathSelfQuery.cs
- CodeAttributeDeclarationCollection.cs
- IntSecurity.cs
- DetailsViewModeEventArgs.cs
- BaseComponentEditor.cs
- HtmlInputRadioButton.cs
- Image.cs
- Match.cs
- GridViewSortEventArgs.cs
- CssClassPropertyAttribute.cs
- base64Transforms.cs
- FileSystemWatcher.cs
- StatusBarPanel.cs
- SecurityContextSecurityTokenAuthenticator.cs
- DesignTimeParseData.cs