Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- InfiniteTimeSpanConverter.cs
- control.ime.cs
- SimpleTypeResolver.cs
- DataGridViewCellCollection.cs
- ExceptionHelpers.cs
- WmlLinkAdapter.cs
- NavigationCommands.cs
- LinqToSqlWrapper.cs
- CalendarDay.cs
- SymbolPair.cs
- XamlPointCollectionSerializer.cs
- CultureData.cs
- ObjectDataSourceSelectingEventArgs.cs
- FixUp.cs
- RadioButtonRenderer.cs
- QueryGeneratorBase.cs
- TimeSpan.cs
- Resources.Designer.cs
- FamilyMap.cs
- ListParaClient.cs
- ClientScriptManager.cs
- LineInfo.cs
- COM2ExtendedUITypeEditor.cs
- PrivateFontCollection.cs
- Oid.cs
- SerializerDescriptor.cs
- dtdvalidator.cs
- VariableQuery.cs
- TriggerBase.cs
- WindowsGraphics.cs
- BulletDecorator.cs
- PropertyGridEditorPart.cs
- Html32TextWriter.cs
- DebuggerService.cs
- Visual3D.cs
- DefaultAssemblyResolver.cs
- Baml2006SchemaContext.cs
- DataServiceEntityAttribute.cs
- RolePrincipal.cs
- InputEventArgs.cs
- DbExpressionVisitor.cs
- VisualCollection.cs
- ConstantProjectedSlot.cs
- sqlstateclientmanager.cs
- BuiltInExpr.cs
- SizeF.cs
- DefaultClaimSet.cs
- DataGridCellAutomationPeer.cs
- QilStrConcat.cs
- DesignerCatalogPartChrome.cs
- HttpListenerResponse.cs
- CalendarDateChangedEventArgs.cs
- Popup.cs
- UnSafeCharBuffer.cs
- GenericEnumerator.cs
- WebBrowserNavigatingEventHandler.cs
- CompilerError.cs
- Compiler.cs
- SqlCacheDependencyDatabase.cs
- WebServiceEnumData.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- TickBar.cs
- Font.cs
- SoapSchemaMember.cs
- _NetworkingPerfCounters.cs
- RotationValidation.cs
- StubHelpers.cs
- XmlAttributes.cs
- PointValueSerializer.cs
- ProbeDuplexCD1AsyncResult.cs
- SmiEventSink_DeferedProcessing.cs
- SoapFormatter.cs
- recordstate.cs
- SplitterPanel.cs
- ChangeNode.cs
- XmlDocument.cs
- ResourceSetExpression.cs
- KnownTypesProvider.cs
- CompilerErrorCollection.cs
- AnnotationStore.cs
- DetailsViewInsertEventArgs.cs
- PropertyStore.cs
- ThreadPool.cs
- cookiecollection.cs
- WebPartManagerInternals.cs
- TextEditorSpelling.cs
- HttpPostedFileBase.cs
- Exceptions.cs
- ImageDrawing.cs
- StorageMappingFragment.cs
- DSASignatureFormatter.cs
- GenericTypeParameterBuilder.cs
- InternalConfigSettingsFactory.cs
- SuppressMergeCheckAttribute.cs
- AndCondition.cs
- DataGridViewRowEventArgs.cs
- WorkflowEnvironment.cs
- GetPageCompletedEventArgs.cs
- Variant.cs
- EnumConverter.cs