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
- FilterException.cs
- Freezable.cs
- GridViewRowCollection.cs
- TransactionException.cs
- XmlDataFileEditor.cs
- InputLangChangeRequestEvent.cs
- HtmlTableRow.cs
- WebPartDisplayModeCancelEventArgs.cs
- JsonByteArrayDataContract.cs
- CacheSection.cs
- EntityContainer.cs
- ConfigurationStrings.cs
- DataGridGeneralPage.cs
- Constants.cs
- DataListItemCollection.cs
- storepermissionattribute.cs
- UpdatePanelControlTrigger.cs
- _NetRes.cs
- RoleManagerSection.cs
- InlinedAggregationOperator.cs
- Filter.cs
- TransformGroup.cs
- URLMembershipCondition.cs
- DataBoundControlDesigner.cs
- PackagingUtilities.cs
- XmlDsigSep2000.cs
- XamlInterfaces.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- SmiXetterAccessMap.cs
- VBIdentifierNameEditor.cs
- CommandDevice.cs
- ReplyChannelAcceptor.cs
- ExpandSegmentCollection.cs
- SQLByte.cs
- NTAccount.cs
- DataGridViewCellValueEventArgs.cs
- DeflateEmulationStream.cs
- COM2PropertyDescriptor.cs
- DataTemplate.cs
- CapabilitiesSection.cs
- hebrewshape.cs
- DataGridLinkButton.cs
- DebugController.cs
- SpeechRecognizer.cs
- OdbcEnvironment.cs
- DataSetMappper.cs
- DispatcherEventArgs.cs
- HandleCollector.cs
- EntityContainer.cs
- ModifierKeysValueSerializer.cs
- TextTrailingWordEllipsis.cs
- XamlStream.cs
- OverflowException.cs
- ClientSideProviderDescription.cs
- FragmentQuery.cs
- DataViewSettingCollection.cs
- WhiteSpaceTrimStringConverter.cs
- AuthenticatedStream.cs
- ToolStripGrip.cs
- Calendar.cs
- TableCell.cs
- StylusButton.cs
- FixedPage.cs
- InfocardClientCredentials.cs
- PixelShader.cs
- ProviderMetadataCachedInformation.cs
- Clipboard.cs
- PartialTrustVisibleAssembliesSection.cs
- NumberSubstitution.cs
- RuleSettingsCollection.cs
- CheckBoxFlatAdapter.cs
- StandardBindingElementCollection.cs
- SecurityElement.cs
- WindowAutomationPeer.cs
- CheckBoxFlatAdapter.cs
- IntegrationExceptionEventArgs.cs
- DataGridViewLinkCell.cs
- MiniModule.cs
- AssemblyCollection.cs
- TdsParameterSetter.cs
- BasicViewGenerator.cs
- BuildResult.cs
- DoubleConverter.cs
- ConversionValidationRule.cs
- TriggerActionCollection.cs
- ValueTypeFixupInfo.cs
- ThreadExceptionEvent.cs
- Expr.cs
- FuncTypeConverter.cs
- HandlerFactoryWrapper.cs
- UnsafePeerToPeerMethods.cs
- SafeProcessHandle.cs
- InvokeGenerator.cs
- TrackingStringDictionary.cs
- ButtonFieldBase.cs
- EnumUnknown.cs
- HttpResponse.cs
- ButtonChrome.cs
- SafeRegistryHandle.cs
- KeyProperty.cs