Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / xsp / System / Web / Configuration / ErrorRuntimeConfig.cs / 1305376 / 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
- AttachedAnnotationChangedEventArgs.cs
- MetaDataInfo.cs
- HashHelper.cs
- WebConfigurationHostFileChange.cs
- _ShellExpression.cs
- WindowManager.cs
- QueuePathEditor.cs
- LocatorGroup.cs
- RadioButtonList.cs
- _NtlmClient.cs
- List.cs
- WebPartEditorCancelVerb.cs
- control.ime.cs
- _AutoWebProxyScriptHelper.cs
- VerificationException.cs
- DateTimeUtil.cs
- DataGridViewBand.cs
- RegexGroup.cs
- clipboard.cs
- WebHttpSecurity.cs
- DependencyObjectType.cs
- DispatcherOperation.cs
- Schema.cs
- PagedDataSource.cs
- ConvertEvent.cs
- ColumnTypeConverter.cs
- Authorization.cs
- RealizationDrawingContextWalker.cs
- ListViewTableCell.cs
- CorrelationKey.cs
- PropertyToken.cs
- Wildcard.cs
- LocalizableAttribute.cs
- CodeTypeMemberCollection.cs
- ComponentDesigner.cs
- RSAOAEPKeyExchangeFormatter.cs
- VectorKeyFrameCollection.cs
- ContextProperty.cs
- XmlComment.cs
- ScrollBarAutomationPeer.cs
- Types.cs
- DataReaderContainer.cs
- SubstitutionResponseElement.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- MenuItemAutomationPeer.cs
- CompiledAction.cs
- SortKey.cs
- StickyNoteHelper.cs
- XmlSchemaObject.cs
- MessageRpc.cs
- XPathPatternParser.cs
- ExtendedPropertyCollection.cs
- Dictionary.cs
- ToolStripOverflowButton.cs
- Size.cs
- OuterProxyWrapper.cs
- Accessible.cs
- SqlDataSourceConnectionPanel.cs
- ContainerUIElement3D.cs
- ClientFormsAuthenticationCredentials.cs
- Row.cs
- safelinkcollection.cs
- EventLog.cs
- Pen.cs
- NameTable.cs
- MessageDecoder.cs
- ClusterRegistryConfigurationProvider.cs
- WindowProviderWrapper.cs
- PeerIPHelper.cs
- PlainXmlSerializer.cs
- RulePatternOps.cs
- BezierSegment.cs
- TextElementEditingBehaviorAttribute.cs
- NavigationPropertySingletonExpression.cs
- MatchingStyle.cs
- StandardToolWindows.cs
- EntityTemplateUserControl.cs
- SQLByte.cs
- ReflectTypeDescriptionProvider.cs
- IisTraceListener.cs
- Properties.cs
- ImageListDesigner.cs
- CommonXSendMessage.cs
- metrodevice.cs
- ToolStripSystemRenderer.cs
- EncoderParameters.cs
- SerializationInfoEnumerator.cs
- AspNetPartialTrustHelpers.cs
- AccessText.cs
- DES.cs
- DataServiceContext.cs
- StringInfo.cs
- ComplexObject.cs
- Comparer.cs
- RowParagraph.cs
- InfoCardKeyedHashAlgorithm.cs
- DependentTransaction.cs
- XamlFilter.cs
- NameSpaceExtractor.cs
- ConnectionPointCookie.cs