Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- ViewManagerAttribute.cs
- Input.cs
- XmlName.cs
- ContourSegment.cs
- RuntimeCompatibilityAttribute.cs
- SpellerInterop.cs
- SyndicationFeed.cs
- ExtensionElementCollection.cs
- DrawingCollection.cs
- AnnotationResource.cs
- TextSpan.cs
- Attributes.cs
- SelectionItemPattern.cs
- XmlDeclaration.cs
- UpdatePanelTriggerCollection.cs
- HttpResponseHeader.cs
- ResourceReader.cs
- MetadataException.cs
- FontStyleConverter.cs
- SubtreeProcessor.cs
- ScaleTransform3D.cs
- WebBrowserHelper.cs
- DataControlButton.cs
- FunctionNode.cs
- OptimizerPatterns.cs
- XmlChildNodes.cs
- WebPartUtil.cs
- TabItemAutomationPeer.cs
- FileStream.cs
- ItemCollection.cs
- StrokeCollectionConverter.cs
- CompoundFileStreamReference.cs
- GeometryDrawing.cs
- BaseInfoTable.cs
- QuaternionAnimationBase.cs
- XmlAnyElementAttribute.cs
- ReaderWriterLock.cs
- SoundPlayerAction.cs
- DirectoryRootQuery.cs
- ByteStorage.cs
- PermissionAttributes.cs
- ReadOnlyHierarchicalDataSource.cs
- NameValueSectionHandler.cs
- MenuCommand.cs
- ClientConfigurationSystem.cs
- XmlSchemaParticle.cs
- RelationshipEndMember.cs
- NodeInfo.cs
- CaseStatementProjectedSlot.cs
- XPathNode.cs
- DataRecordObjectView.cs
- LineMetrics.cs
- ServiceNameElementCollection.cs
- FunctionQuery.cs
- EntityDataReader.cs
- ListView.cs
- PreProcessor.cs
- LinearGradientBrush.cs
- SectionXmlInfo.cs
- SplineKeyFrames.cs
- XamlSerializationHelper.cs
- HttpResponse.cs
- ExtenderProviderService.cs
- ProviderConnectionPointCollection.cs
- BrowserInteropHelper.cs
- _ShellExpression.cs
- PropertyChangingEventArgs.cs
- FontFamilyIdentifier.cs
- FormView.cs
- SqlExpressionNullability.cs
- URLMembershipCondition.cs
- BmpBitmapDecoder.cs
- ExceptionHandlers.cs
- BuilderPropertyEntry.cs
- MimeMapping.cs
- WindowsListViewScroll.cs
- LogExtentCollection.cs
- Semaphore.cs
- ServiceBusyException.cs
- SlotInfo.cs
- TypeNameConverter.cs
- CodeSnippetTypeMember.cs
- TypedElement.cs
- ScriptingWebServicesSectionGroup.cs
- DateTimePicker.cs
- Menu.cs
- MultipleViewProviderWrapper.cs
- AssemblyContextControlItem.cs
- StylusPointProperties.cs
- Separator.cs
- DataGrid.cs
- WsdlInspector.cs
- TransformedBitmap.cs
- ListParaClient.cs
- ControlPropertyNameConverter.cs
- VersionedStreamOwner.cs
- GridLengthConverter.cs
- TTSEvent.cs
- Region.cs
- WorkflowExecutor.cs