Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ImmComposition.cs
- RecipientInfo.cs
- IsolatedStorageFileStream.cs
- WebPartCollection.cs
- ItemsControlAutomationPeer.cs
- Activity.cs
- XmlDataContract.cs
- SafeNativeMethods.cs
- StructuredTypeInfo.cs
- ProgressPage.cs
- SqlDataSourceCommandEventArgs.cs
- DynamicDiscoveryDocument.cs
- _ConnectionGroup.cs
- OleDbConnection.cs
- BinaryFormatterWriter.cs
- GenericWebPart.cs
- PropertySegmentSerializer.cs
- FieldDescriptor.cs
- SecurityManager.cs
- ImageSourceValueSerializer.cs
- HybridDictionary.cs
- HttpModule.cs
- RegionInfo.cs
- SQLConvert.cs
- RestHandlerFactory.cs
- ArrayElementGridEntry.cs
- ImageListUtils.cs
- ISAPIWorkerRequest.cs
- Expressions.cs
- PointLight.cs
- PlainXmlDeserializer.cs
- GeneralTransform3D.cs
- AutomationElement.cs
- SessionEndedEventArgs.cs
- BaseAutoFormat.cs
- KeyTimeConverter.cs
- ControlBuilderAttribute.cs
- DataRow.cs
- ConfigurationElement.cs
- FramingChannels.cs
- XmlTypeAttribute.cs
- OleDbCommand.cs
- XmlJsonReader.cs
- HandleRef.cs
- MSHTMLHost.cs
- WSHttpTransportSecurityElement.cs
- NonValidatingSecurityTokenAuthenticator.cs
- OleDbPermission.cs
- WebConfigurationManager.cs
- RotateTransform.cs
- ProxyFragment.cs
- XamlBuildProvider.cs
- Deflater.cs
- SettingsPropertyValue.cs
- OleDbRowUpdatedEvent.cs
- securitymgrsite.cs
- SqlNodeAnnotation.cs
- PackWebRequest.cs
- ImmutableObjectAttribute.cs
- MD5HashHelper.cs
- WebRequestModuleElementCollection.cs
- Assembly.cs
- PropertyMap.cs
- BasicKeyConstraint.cs
- MultiByteCodec.cs
- ChameleonKey.cs
- ConsoleCancelEventArgs.cs
- ComContractElement.cs
- TraceContextRecord.cs
- StrokeNodeOperations.cs
- StoreContentChangedEventArgs.cs
- VersionValidator.cs
- AutomationProperty.cs
- WizardStepBase.cs
- InstanceLockLostException.cs
- CreateUserWizard.cs
- DefaultParameterValueAttribute.cs
- CompensationParticipant.cs
- PropertiesTab.cs
- login.cs
- DataTableMapping.cs
- RecognizerStateChangedEventArgs.cs
- ChtmlTextWriter.cs
- PersonalizationProviderCollection.cs
- TableLayoutSettingsTypeConverter.cs
- InvalidPrinterException.cs
- ValueTypeFixupInfo.cs
- TreeViewEvent.cs
- XamlDesignerSerializationManager.cs
- TrustManagerMoreInformation.cs
- DbConnectionClosed.cs
- CellParagraph.cs
- CacheChildrenQuery.cs
- TextProperties.cs
- pingexception.cs
- GrammarBuilderWildcard.cs
- TransformGroup.cs
- CodeCatchClause.cs
- SerializationStore.cs
- XmlValidatingReaderImpl.cs