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
- CalendarDesigner.cs
- DbConnectionInternal.cs
- HandleExceptionArgs.cs
- EntityContainerAssociationSetEnd.cs
- ColumnPropertiesGroup.cs
- EventHandlerService.cs
- _StreamFramer.cs
- precedingsibling.cs
- EventHandlersStore.cs
- WebPartConnectionsEventArgs.cs
- _Semaphore.cs
- FileSystemWatcher.cs
- ServiceObjectContainer.cs
- CodeTypeParameter.cs
- RTLAwareMessageBox.cs
- SqlDataSourceView.cs
- WebControlParameterProxy.cs
- SinglePageViewer.cs
- CheckBoxStandardAdapter.cs
- DetailsViewPagerRow.cs
- DBPropSet.cs
- HttpPostedFile.cs
- FilteredAttributeCollection.cs
- ValueExpressions.cs
- KerberosReceiverSecurityToken.cs
- InputScopeConverter.cs
- Pointer.cs
- UnmanagedBitmapWrapper.cs
- PasswordBoxAutomationPeer.cs
- Regex.cs
- HtmlInputCheckBox.cs
- HttpConfigurationSystem.cs
- ExecutionContext.cs
- CreatingCookieEventArgs.cs
- SmtpFailedRecipientException.cs
- StorageComplexTypeMapping.cs
- ScriptControl.cs
- ToolboxItem.cs
- GlyphRunDrawing.cs
- CodeTypeOfExpression.cs
- XmlSchemaGroup.cs
- IconHelper.cs
- DataSourceView.cs
- InfoCardCryptoHelper.cs
- XamlSerializerUtil.cs
- CompilationLock.cs
- CheckoutException.cs
- DropDownButton.cs
- InputBindingCollection.cs
- IdSpace.cs
- NamespaceExpr.cs
- FormsAuthenticationTicket.cs
- BoolExpr.cs
- SQLResource.cs
- GenerateDerivedKeyRequest.cs
- DeclaredTypeElementCollection.cs
- CodeAttributeArgumentCollection.cs
- Message.cs
- QueueSurrogate.cs
- ListItem.cs
- ProjectionPruner.cs
- PositiveTimeSpanValidator.cs
- AmbientValueAttribute.cs
- HitTestFilterBehavior.cs
- MemberPath.cs
- HttpValueCollection.cs
- DispatcherObject.cs
- SingleObjectCollection.cs
- PageBuildProvider.cs
- AssemblyAttributesGoHere.cs
- StickyNoteContentControl.cs
- NamedPipeAppDomainProtocolHandler.cs
- ObfuscateAssemblyAttribute.cs
- AnnotationAdorner.cs
- DynamicQueryableWrapper.cs
- LocatorPartList.cs
- PersonalizationProviderCollection.cs
- _Rfc2616CacheValidators.cs
- ItemChangedEventArgs.cs
- UriSection.cs
- NameGenerator.cs
- _HeaderInfo.cs
- objectquery_tresulttype.cs
- ReferenceEqualityComparer.cs
- SmtpTransport.cs
- GridPattern.cs
- PnrpPermission.cs
- RadialGradientBrush.cs
- ValidateNames.cs
- PrintDialog.cs
- srgsitem.cs
- GlyphCollection.cs
- CustomBindingElementCollection.cs
- XmlILStorageConverter.cs
- RijndaelManagedTransform.cs
- SelectionProviderWrapper.cs
- _Win32.cs
- EdmProperty.cs
- VectorCollection.cs
- DeclarativeExpressionConditionDeclaration.cs