Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ForceCopyBuildProvider.cs
- SmtpFailedRecipientsException.cs
- ImageSourceValueSerializer.cs
- PreloadHost.cs
- SchemaTableOptionalColumn.cs
- PrintingPermissionAttribute.cs
- XamlStream.cs
- Attributes.cs
- BuildResult.cs
- DataSourceXmlSerializer.cs
- ControlTemplate.cs
- TextClipboardData.cs
- QueryComponents.cs
- MainMenu.cs
- ReliableDuplexSessionChannel.cs
- SystemIPv6InterfaceProperties.cs
- SamlAuthenticationClaimResource.cs
- RootAction.cs
- AssemblyAssociatedContentFileAttribute.cs
- CellTreeNode.cs
- MenuItemStyle.cs
- TagNameToTypeMapper.cs
- FilteredDataSetHelper.cs
- ModifierKeysConverter.cs
- CategoryGridEntry.cs
- AddInProcess.cs
- TextWriter.cs
- TakeOrSkipQueryOperator.cs
- FilterFactory.cs
- SettingsPropertyIsReadOnlyException.cs
- XhtmlBasicFormAdapter.cs
- LineGeometry.cs
- DispatcherTimer.cs
- WebPartDisplayModeEventArgs.cs
- CheckBox.cs
- ISAPIRuntime.cs
- XamlWriter.cs
- FixedSOMTableRow.cs
- BulletedList.cs
- SoapAttributeOverrides.cs
- OracleMonthSpan.cs
- RewritingPass.cs
- SpellerHighlightLayer.cs
- WsatConfiguration.cs
- Version.cs
- InfoCardSymmetricCrypto.cs
- PrivilegeNotHeldException.cs
- StringDictionary.cs
- dsa.cs
- OperationContractGenerationContext.cs
- KeyTime.cs
- CssTextWriter.cs
- MetadataArtifactLoaderFile.cs
- RectAnimationBase.cs
- ApplicationManager.cs
- HttpServerChannel.cs
- XmlILCommand.cs
- HttpTransportBindingElement.cs
- OperationDescriptionCollection.cs
- HtmlTableRowCollection.cs
- JsonXmlDataContract.cs
- DataSourceXmlSerializer.cs
- ProcessProtocolHandler.cs
- AttributeProviderAttribute.cs
- CommandValueSerializer.cs
- SQLSingle.cs
- PolicyImporterElement.cs
- SymmetricAlgorithm.cs
- HtmlInputImage.cs
- CodeComment.cs
- TransportContext.cs
- Header.cs
- NullReferenceException.cs
- DirectoryRootQuery.cs
- _emptywebproxy.cs
- ActivityWithResult.cs
- MediaScriptCommandRoutedEventArgs.cs
- DataError.cs
- UnSafeCharBuffer.cs
- odbcmetadatafactory.cs
- ThumbAutomationPeer.cs
- AutomationPropertyInfo.cs
- ControlUtil.cs
- ExcludePathInfo.cs
- MULTI_QI.cs
- CatalogZoneBase.cs
- NativeCppClassAttribute.cs
- ContextMarshalException.cs
- TrustSection.cs
- StylusPoint.cs
- MediaSystem.cs
- securitymgrsite.cs
- AnimationClockResource.cs
- StartFileNameEditor.cs
- EntitySqlQueryCacheEntry.cs
- ConfigXmlComment.cs
- ScriptReferenceEventArgs.cs
- XmlSchemaInfo.cs
- ParserHooks.cs
- activationcontext.cs