Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / DEVDIV / depot / DevDiv / releases / 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. //------------------------------------------------------------------------------ //// 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
- FormsAuthenticationTicket.cs
- EntityDataSourceUtil.cs
- ConcurrencyMode.cs
- PolyLineSegment.cs
- SuppressMessageAttribute.cs
- WmfPlaceableFileHeader.cs
- TrackingProfileCache.cs
- Win32Exception.cs
- HierarchicalDataTemplate.cs
- Guid.cs
- DateTimeFormatInfo.cs
- MultipartContentParser.cs
- DefaultBindingPropertyAttribute.cs
- HasCopySemanticsAttribute.cs
- ProfileSettingsCollection.cs
- XamlSerializationHelper.cs
- CompilerGeneratedAttribute.cs
- XmlSchemaObject.cs
- CmsInterop.cs
- CellConstantDomain.cs
- CodeChecksumPragma.cs
- CodePageUtils.cs
- ControlCachePolicy.cs
- EditableRegion.cs
- _ListenerAsyncResult.cs
- EventTrigger.cs
- JoinTreeNode.cs
- ActivityScheduledQuery.cs
- TableCellAutomationPeer.cs
- Tuple.cs
- TextSpan.cs
- NotifyParentPropertyAttribute.cs
- DataBoundControlAdapter.cs
- HostedHttpContext.cs
- ImageInfo.cs
- MappedMetaModel.cs
- XNodeNavigator.cs
- OlePropertyStructs.cs
- ColumnHeaderCollectionEditor.cs
- ManagementDateTime.cs
- AccessDataSourceView.cs
- HMACSHA512.cs
- ProfileServiceManager.cs
- CreatingCookieEventArgs.cs
- ObjectComplexPropertyMapping.cs
- EntityKeyElement.cs
- ScriptControl.cs
- SafeArrayTypeMismatchException.cs
- Base64Stream.cs
- VirtualDirectoryMapping.cs
- ButtonBaseAutomationPeer.cs
- OdbcRowUpdatingEvent.cs
- FormClosedEvent.cs
- ParsedAttributeCollection.cs
- CodePrimitiveExpression.cs
- AuthenticationModuleElement.cs
- TextWriter.cs
- XmlChildEnumerator.cs
- Point3DCollection.cs
- Expression.cs
- AdornerDecorator.cs
- InstanceContextMode.cs
- TableDesigner.cs
- userdatakeys.cs
- AffineTransform3D.cs
- Comparer.cs
- HostingPreferredMapPath.cs
- KeyTime.cs
- IndexedString.cs
- XmlSchemaCompilationSettings.cs
- EDesignUtil.cs
- DesignConnection.cs
- ConnectionManagementElement.cs
- X509CertificateEndpointIdentity.cs
- ServerIdentity.cs
- Component.cs
- HebrewNumber.cs
- TextParaClient.cs
- MediaTimeline.cs
- WorkflowRuntimeElement.cs
- Int16Storage.cs
- ImplicitInputBrush.cs
- TypeAccessException.cs
- XmlBoundElement.cs
- UseAttributeSetsAction.cs
- WeakReferenceKey.cs
- StylusPointPropertyUnit.cs
- HelpProvider.cs
- RawStylusSystemGestureInputReport.cs
- DataSourceBooleanViewSchemaConverter.cs
- StoreItemCollection.cs
- SqlMultiplexer.cs
- CachedTypeface.cs
- TimeSpanStorage.cs
- ChannelServices.cs
- Binding.cs
- Decoder.cs
- Transform.cs
- UniqueConstraint.cs
- GridViewSelectEventArgs.cs