Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlXml.cs
- BuildProviderInstallComponent.cs
- ParseHttpDate.cs
- TreeWalkHelper.cs
- IgnorePropertiesAttribute.cs
- clipboard.cs
- DataGridViewCellValidatingEventArgs.cs
- CodeMemberField.cs
- HtmlControl.cs
- DesignTimeVisibleAttribute.cs
- XmlDsigSep2000.cs
- WebBrowserProgressChangedEventHandler.cs
- ZoneButton.cs
- XmlReader.cs
- TextAnchor.cs
- ByteStack.cs
- SqlBooleanMismatchVisitor.cs
- EventOpcode.cs
- WebException.cs
- GraphicsContainer.cs
- IsolatedStorage.cs
- LexicalChunk.cs
- CmsInterop.cs
- WebResourceAttribute.cs
- MetadataItemEmitter.cs
- PropertyReferenceExtension.cs
- ProfilePropertyNameValidator.cs
- ToolStripItem.cs
- CodeExpressionCollection.cs
- TypeResolver.cs
- SQLGuid.cs
- WorkflowPageSetupDialog.cs
- HuffmanTree.cs
- MetadataUtil.cs
- LifetimeServices.cs
- CountdownEvent.cs
- MetricEntry.cs
- OdbcEnvironmentHandle.cs
- SchemaImporter.cs
- NativeMethods.cs
- MessageQueueConverter.cs
- webeventbuffer.cs
- HwndTarget.cs
- PieceDirectory.cs
- IntegerValidator.cs
- LayoutEditorPart.cs
- safemediahandle.cs
- RegularExpressionValidator.cs
- ToolStripPanel.cs
- FlowDocumentPageViewerAutomationPeer.cs
- WSFederationHttpSecurity.cs
- SQLDouble.cs
- MeshGeometry3D.cs
- Constants.cs
- DataSourceProvider.cs
- SHA1Managed.cs
- CharAnimationBase.cs
- ListControl.cs
- InternalConfigEventArgs.cs
- BaseCAMarshaler.cs
- DockPanel.cs
- GridViewRowEventArgs.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ToolStripSystemRenderer.cs
- _StreamFramer.cs
- XmlSerializationGeneratedCode.cs
- ObjRef.cs
- SerializationInfo.cs
- CodeNamespaceCollection.cs
- DictionaryBase.cs
- ObjectStateEntryDbDataRecord.cs
- RayMeshGeometry3DHitTestResult.cs
- shaperfactory.cs
- DataTemplate.cs
- MgmtConfigurationRecord.cs
- SecurityResources.cs
- BaseCollection.cs
- SamlAuthenticationClaimResource.cs
- UIElementCollection.cs
- ACE.cs
- Track.cs
- prefixendpointaddressmessagefilter.cs
- VirtualPath.cs
- streamingZipPartStream.cs
- NameSpaceExtractor.cs
- EditingCommands.cs
- OperationCanceledException.cs
- TemplateBamlRecordReader.cs
- ToolboxDataAttribute.cs
- SessionStateModule.cs
- UInt32Storage.cs
- WebPartConnectionsEventArgs.cs
- DeploymentSection.cs
- EntityParameterCollection.cs
- ProgressBar.cs
- PeerName.cs
- FileLevelControlBuilderAttribute.cs
- CacheModeConverter.cs
- SQLSingleStorage.cs
- PopupEventArgs.cs