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
- TextContainerHelper.cs
- SocketConnection.cs
- SqlGatherConsumedAliases.cs
- FormViewDeleteEventArgs.cs
- MaskInputRejectedEventArgs.cs
- ChangeInterceptorAttribute.cs
- DataServiceQueryContinuation.cs
- IQueryable.cs
- WindowsFormsSynchronizationContext.cs
- Tile.cs
- ComponentResourceKey.cs
- ExpressionEditorAttribute.cs
- SimpleTextLine.cs
- EntityDataSourceDesignerHelper.cs
- RowToParametersTransformer.cs
- DTCTransactionManager.cs
- ConfigXmlSignificantWhitespace.cs
- InstancePersistenceEvent.cs
- BlockCollection.cs
- ImplicitInputBrush.cs
- ArraySet.cs
- ToolboxControl.cs
- TypeForwardedToAttribute.cs
- EntityModelSchemaGenerator.cs
- DBDataPermission.cs
- DriveNotFoundException.cs
- CodeIdentifier.cs
- TextAdaptor.cs
- BuildProvider.cs
- MenuItemBindingCollection.cs
- SQLBoolean.cs
- FontCacheLogic.cs
- RTTypeWrapper.cs
- Aggregates.cs
- InheritablePropertyChangeInfo.cs
- ObjectHandle.cs
- IdnElement.cs
- DocumentApplicationJournalEntry.cs
- DesignerTransaction.cs
- ScriptIgnoreAttribute.cs
- SQLInt16Storage.cs
- SimplePropertyEntry.cs
- StrokeNode.cs
- figurelengthconverter.cs
- XamlHostingSection.cs
- ReturnValue.cs
- ObjectListCommandsPage.cs
- HostSecurityManager.cs
- WpfXamlType.cs
- Group.cs
- bindurihelper.cs
- MessageSecurityVersion.cs
- Logging.cs
- CompilationLock.cs
- QilFactory.cs
- SqlCacheDependencyDatabase.cs
- QueryExtender.cs
- GenericXmlSecurityToken.cs
- ResourceWriter.cs
- Util.cs
- ItemMap.cs
- TextEndOfParagraph.cs
- EventLogEntry.cs
- ClonableStack.cs
- DataObjectCopyingEventArgs.cs
- MessageHeaderDescriptionCollection.cs
- MetadataCache.cs
- ProfileModule.cs
- filewebresponse.cs
- CodeCastExpression.cs
- AuthenticationManager.cs
- SharedConnectionWorkflowTransactionService.cs
- OleDbTransaction.cs
- SchemaInfo.cs
- PackagePart.cs
- CalendarDataBindingHandler.cs
- Menu.cs
- NameTable.cs
- ByteStream.cs
- EmulateRecognizeCompletedEventArgs.cs
- Bitmap.cs
- Calendar.cs
- GridViewUpdatedEventArgs.cs
- AutomationPropertyInfo.cs
- Pkcs7Signer.cs
- RegisteredArrayDeclaration.cs
- PlanCompiler.cs
- RepeatButton.cs
- InlineObject.cs
- SqlBulkCopyColumnMapping.cs
- FontFamily.cs
- FrameworkPropertyMetadata.cs
- FormViewDeleteEventArgs.cs
- NetTcpSecurity.cs
- XslNumber.cs
- DataGridColumnCollection.cs
- EntityProviderFactory.cs
- ArgumentOutOfRangeException.cs
- ImageSourceConverter.cs
- TextEditorTyping.cs