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
- WindowsBrush.cs
- ApplicationServicesHostFactory.cs
- PointAnimationUsingPath.cs
- IDictionary.cs
- SingletonChannelAcceptor.cs
- _HeaderInfoTable.cs
- CardSpacePolicyElement.cs
- XmlSerializationReader.cs
- ProtocolElement.cs
- QueryCursorEventArgs.cs
- SystemInfo.cs
- QueryPageSettingsEventArgs.cs
- HasRunnableWorkflowEvent.cs
- MarginCollapsingState.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- OdbcCommand.cs
- DoWhileDesigner.xaml.cs
- PathGeometry.cs
- TypeUtil.cs
- DataFormats.cs
- MailFileEditor.cs
- RemoteHelper.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- BinaryOperationBinder.cs
- OrthographicCamera.cs
- DataBoundControlDesigner.cs
- Tablet.cs
- PermissionSetTriple.cs
- GeneralTransform3D.cs
- Triangle.cs
- TickBar.cs
- OutOfMemoryException.cs
- SmiGettersStream.cs
- TemplateLookupAction.cs
- MyContact.cs
- IfAction.cs
- TableHeaderCell.cs
- SqlResolver.cs
- ChannelSinkStacks.cs
- FixedSOMTableCell.cs
- FlowDocumentScrollViewer.cs
- SmiContextFactory.cs
- AlphabetConverter.cs
- DesignerGeometryHelper.cs
- Encoder.cs
- WebPartEditorOkVerb.cs
- SpellerHighlightLayer.cs
- ExtractorMetadata.cs
- Keywords.cs
- ReadOnlyDictionary.cs
- ObjectComplexPropertyMapping.cs
- SHA512.cs
- oledbconnectionstring.cs
- UDPClient.cs
- MessageAction.cs
- ObjectConverter.cs
- BuildTopDownAttribute.cs
- StreamUpdate.cs
- CodeDirectionExpression.cs
- RelatedPropertyManager.cs
- InvalidEnumArgumentException.cs
- FontSourceCollection.cs
- HyperLinkField.cs
- RegionInfo.cs
- FileChangesMonitor.cs
- EntityDataSourceChangedEventArgs.cs
- CqlErrorHelper.cs
- DataGridViewComboBoxColumn.cs
- DataGridViewCellPaintingEventArgs.cs
- DBPropSet.cs
- KeyValueConfigurationCollection.cs
- ItemMap.cs
- EventMappingSettings.cs
- Emitter.cs
- DesignerEventService.cs
- ResourceDescriptionAttribute.cs
- ContentPresenter.cs
- MergeFailedEvent.cs
- XsdValidatingReader.cs
- XPathArrayIterator.cs
- CryptoHandle.cs
- MethodToken.cs
- TextTreeRootTextBlock.cs
- GlyphElement.cs
- MetadataItem_Static.cs
- TabControl.cs
- Renderer.cs
- PersonalizableAttribute.cs
- ObjectListCommandEventArgs.cs
- BuildManagerHost.cs
- PropertyDescriptorComparer.cs
- Rules.cs
- SQLInt16.cs
- CanonicalXml.cs
- SoapRpcServiceAttribute.cs
- AccessViolationException.cs
- IResourceProvider.cs
- cookie.cs
- BooleanAnimationBase.cs
- Knowncolors.cs