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
- TextElementAutomationPeer.cs
- FieldToken.cs
- CroppedBitmap.cs
- DefinitionBase.cs
- _SSPISessionCache.cs
- CatalogPart.cs
- DependencyPropertyValueSerializer.cs
- PrimaryKeyTypeConverter.cs
- _SslSessionsCache.cs
- DeferredBinaryDeserializerExtension.cs
- RelationshipDetailsRow.cs
- SecurityKeyIdentifier.cs
- ConfigurationLockCollection.cs
- StackSpiller.Temps.cs
- ConvertTextFrag.cs
- BmpBitmapEncoder.cs
- DebuggerAttributes.cs
- DBSchemaRow.cs
- HybridDictionary.cs
- AuthenticatingEventArgs.cs
- CodeExporter.cs
- CompositeActivityMarkupSerializer.cs
- SqlDependencyListener.cs
- SqlEnums.cs
- DataServiceRequest.cs
- XmlTextWriter.cs
- ScriptControlManager.cs
- CodeDomConfigurationHandler.cs
- AnonymousIdentificationSection.cs
- FixedTextBuilder.cs
- AsynchronousChannelMergeEnumerator.cs
- StopStoryboard.cs
- ProbeMatchesMessageCD1.cs
- codemethodreferenceexpression.cs
- UrlMappingsSection.cs
- Misc.cs
- Stopwatch.cs
- LogFlushAsyncResult.cs
- ThreadAbortException.cs
- Trace.cs
- MessageRpc.cs
- NotifyInputEventArgs.cs
- PropertyDescriptor.cs
- MissingMemberException.cs
- HandlerMappingMemo.cs
- UpdateRecord.cs
- coordinator.cs
- ContextMarshalException.cs
- CompositeClientFormatter.cs
- AssemblyBuilderData.cs
- SqlCacheDependencyDatabaseCollection.cs
- TextLine.cs
- SupportsEventValidationAttribute.cs
- LinqDataSource.cs
- UnsafeNativeMethods.cs
- FormViewInsertEventArgs.cs
- CaretElement.cs
- OdbcCommand.cs
- XmlAnyElementAttribute.cs
- FilteredAttributeCollection.cs
- UrlAuthorizationModule.cs
- loginstatus.cs
- EntityContainerEmitter.cs
- SharedConnectionWorkflowTransactionService.cs
- Currency.cs
- SchemaImporterExtensionElementCollection.cs
- cache.cs
- SymmetricCryptoHandle.cs
- NonClientArea.cs
- SrgsElementList.cs
- DriveNotFoundException.cs
- InvalidChannelBindingException.cs
- ProxyGenerationError.cs
- InertiaRotationBehavior.cs
- Timer.cs
- DbParameterCollection.cs
- PointCollectionValueSerializer.cs
- RSAProtectedConfigurationProvider.cs
- MeasureData.cs
- OleStrCAMarshaler.cs
- LZCodec.cs
- StylusDevice.cs
- XpsImageSerializationService.cs
- X509Certificate2Collection.cs
- PropertyEmitterBase.cs
- Label.cs
- ServiceReference.cs
- ApplicationServiceManager.cs
- FixedSOMElement.cs
- AutomationProperties.cs
- Translator.cs
- NotifyInputEventArgs.cs
- ToolStripScrollButton.cs
- SudsParser.cs
- MultiViewDesigner.cs
- WindowsListViewItem.cs
- AutoGeneratedField.cs
- MetricEntry.cs
- MethodExpr.cs
- XmlArrayItemAttributes.cs