Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DrawingAttributesDefaultValueFactory.cs
- ConfigurationManager.cs
- UIElementCollection.cs
- Publisher.cs
- PrtCap_Base.cs
- FacetChecker.cs
- UIElement3DAutomationPeer.cs
- InheritanceAttribute.cs
- GenericAuthenticationEventArgs.cs
- PropertyEmitterBase.cs
- SID.cs
- FileDialogCustomPlacesCollection.cs
- MappingModelBuildProvider.cs
- PrimitiveXmlSerializers.cs
- DateTimeConverter2.cs
- SmiEventSink.cs
- XmlEntityReference.cs
- ByteFacetDescriptionElement.cs
- SqlCachedBuffer.cs
- InputMethodStateChangeEventArgs.cs
- NullableFloatMinMaxAggregationOperator.cs
- Selection.cs
- AuthenticationService.cs
- COM2AboutBoxPropertyDescriptor.cs
- SiteMembershipCondition.cs
- XamlPoint3DCollectionSerializer.cs
- ContentFileHelper.cs
- smtpconnection.cs
- DriveNotFoundException.cs
- XmlSchemaInferenceException.cs
- DataSourceProvider.cs
- ToolbarAUtomationPeer.cs
- ScrollableControl.cs
- ControlTemplate.cs
- ServiceErrorHandler.cs
- SecurityTokenRequirement.cs
- login.cs
- SkipStoryboardToFill.cs
- ReaderWriterLockWrapper.cs
- RegexParser.cs
- TypeDescriptionProvider.cs
- ResXResourceWriter.cs
- NGCUIElementCollectionSerializerAsync.cs
- SessionStateItemCollection.cs
- LineProperties.cs
- ObjectStateManager.cs
- DataBindingValueUIHandler.cs
- DependencyPropertyValueSerializer.cs
- VectorAnimationBase.cs
- CompilerErrorCollection.cs
- AtlasWeb.Designer.cs
- WebPartMovingEventArgs.cs
- LOSFormatter.cs
- StreamInfo.cs
- GACIdentityPermission.cs
- ProviderSettingsCollection.cs
- TextStore.cs
- ImageFormatConverter.cs
- Baml6ConstructorInfo.cs
- UnitySerializationHolder.cs
- RoutedEventHandlerInfo.cs
- ResourceManager.cs
- ContextQuery.cs
- TransactionOptions.cs
- OleAutBinder.cs
- DynamicMethod.cs
- CatalogPartChrome.cs
- DataTableMapping.cs
- HttpListenerPrefixCollection.cs
- CriticalExceptions.cs
- DataGridColumn.cs
- XomlDesignerLoader.cs
- _AuthenticationState.cs
- DeploymentSection.cs
- RowTypeElement.cs
- TextSerializer.cs
- MappingModelBuildProvider.cs
- SecurityPermission.cs
- DetailsViewPagerRow.cs
- IUnknownConstantAttribute.cs
- EFAssociationProvider.cs
- AliasedSlot.cs
- dsa.cs
- SQLInt32.cs
- MailWriter.cs
- updateconfighost.cs
- DataServiceRequestOfT.cs
- IdentifierService.cs
- ToolStripButton.cs
- ReachVisualSerializer.cs
- XmlSchemas.cs
- DropShadowBitmapEffect.cs
- Models.cs
- BrowserTree.cs
- WorkflowExecutor.cs
- XmlIlGenerator.cs
- BinaryObjectInfo.cs
- DynamicScriptObject.cs
- EdmItemCollection.cs
- TitleStyle.cs