Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- HwndTarget.cs
- ParentControlDesigner.cs
- DetailsViewDeleteEventArgs.cs
- HashHelper.cs
- RawStylusInput.cs
- UpdateTracker.cs
- XmlWrappingReader.cs
- HierarchicalDataSourceControl.cs
- WebRequestModulesSection.cs
- ValidationErrorEventArgs.cs
- QilTypeChecker.cs
- TemplateApplicationHelper.cs
- PropertyDescriptorCollection.cs
- PeerTransportListenAddressConverter.cs
- CSharpCodeProvider.cs
- StreamUpgradeBindingElement.cs
- HtmlEmptyTagControlBuilder.cs
- XmlSerializerFactory.cs
- WebPartMinimizeVerb.cs
- EventWaitHandle.cs
- RegularExpressionValidator.cs
- DoubleLinkListEnumerator.cs
- HtmlHead.cs
- DeviceContext2.cs
- InputBinder.cs
- SqlInfoMessageEvent.cs
- ConfigXmlComment.cs
- TemplateApplicationHelper.cs
- WebScriptServiceHostFactory.cs
- ArgumentValidation.cs
- HttpCapabilitiesEvaluator.cs
- ToolStrip.cs
- EncodingTable.cs
- NeutralResourcesLanguageAttribute.cs
- EnglishPluralizationService.cs
- TraceHandler.cs
- EnumType.cs
- CommonDialog.cs
- OrCondition.cs
- ReachSerializerAsync.cs
- DataGridBeginningEditEventArgs.cs
- ResetableIterator.cs
- ProbeMatchesApril2005.cs
- HelpProvider.cs
- CodeBinaryOperatorExpression.cs
- JsonReader.cs
- DomNameTable.cs
- NGCUIElementCollectionSerializerAsync.cs
- DataGridColumnHeadersPresenter.cs
- UIElementAutomationPeer.cs
- SqlDataSourceSelectingEventArgs.cs
- PublishLicense.cs
- EmptyEnumerable.cs
- HybridWebProxyFinder.cs
- RoleExceptions.cs
- MsmqNonTransactedPoisonHandler.cs
- FileDialog_Vista_Interop.cs
- ProfileParameter.cs
- NameValuePermission.cs
- AssemblyBuilder.cs
- RequestSecurityToken.cs
- AffineTransform3D.cs
- SchemaType.cs
- PolicyReader.cs
- AssemblyAttributes.cs
- documentation.cs
- ApplicationInterop.cs
- PagePropertiesChangingEventArgs.cs
- HttpHandlerAction.cs
- StrongNamePublicKeyBlob.cs
- metadatamappinghashervisitor.cs
- BehaviorEditorPart.cs
- RtType.cs
- ExpressionBuilder.cs
- CodeAttributeDeclaration.cs
- KeyEvent.cs
- KeyedHashAlgorithm.cs
- PersistenceMetadataNamespace.cs
- dataSvcMapFileLoader.cs
- NotificationContext.cs
- WhitespaceRuleLookup.cs
- XmlWriterTraceListener.cs
- DataGridView.cs
- FixedPageStructure.cs
- CharacterShapingProperties.cs
- xmlfixedPageInfo.cs
- NavigateEvent.cs
- TemplatePropertyEntry.cs
- DataKeyArray.cs
- ExpressionParser.cs
- JpegBitmapEncoder.cs
- HasCopySemanticsAttribute.cs
- ProcessModuleDesigner.cs
- BufferAllocator.cs
- TextServicesContext.cs
- EnumMemberAttribute.cs
- TcpAppDomainProtocolHandler.cs
- InlineCollection.cs
- ResourcePool.cs
- BufferBuilder.cs