Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / WinForms / Managed / System / WinForms / WindowsFormsSectionHandler.cs / 1 / WindowsFormsSectionHandler.cs
[assembly: System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope="member", Target="System.Windows.Forms.WindowsFormsSectionHandler..ctor()")]
namespace System.Windows.Forms {
using System;
using System.Diagnostics;
using System.Configuration;
public sealed class WindowsFormsSection : ConfigurationSection {
internal const bool JitDebuggingDefault = false;
private static ConfigurationPropertyCollection s_properties;
private static ConfigurationProperty s_propJitDebugging;
internal static WindowsFormsSection GetSection() {
WindowsFormsSection section = null;
try {
section = (WindowsFormsSection) System.Configuration.PrivilegedConfigurationManager.GetSection("system.windows.forms");
}
catch {
Debug.Fail("Exception loading config for windows forms");
section = new WindowsFormsSection();
}
return section;
}
private static ConfigurationPropertyCollection EnsureStaticPropertyBag() {
if (s_properties == null) {
s_propJitDebugging = new ConfigurationProperty("jitDebugging", typeof(bool), JitDebuggingDefault, ConfigurationPropertyOptions.None);
ConfigurationPropertyCollection properties = new ConfigurationPropertyCollection();
properties.Add(s_propJitDebugging);
s_properties = properties;
}
return s_properties;
}
public WindowsFormsSection() {
EnsureStaticPropertyBag();
}
protected override ConfigurationPropertyCollection Properties {
get {
return EnsureStaticPropertyBag();
}
}
[ConfigurationProperty("jitDebugging", DefaultValue=JitDebuggingDefault)]
public bool JitDebugging {
get {
return (bool) base[s_propJitDebugging];
}
set {
base[s_propJitDebugging] = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ManipulationStartedEventArgs.cs
- RowUpdatedEventArgs.cs
- CounterCreationData.cs
- SoapExtensionTypeElementCollection.cs
- XmlSubtreeReader.cs
- CustomPopupPlacement.cs
- SystemException.cs
- ReadOnlyCollectionBase.cs
- RecommendedAsConfigurableAttribute.cs
- Pair.cs
- AddInSegmentDirectoryNotFoundException.cs
- DataGridViewToolTip.cs
- XslAst.cs
- DataGridViewCellStyleEditor.cs
- Int64AnimationUsingKeyFrames.cs
- MethodBuilderInstantiation.cs
- HtmlFormWrapper.cs
- ListViewItem.cs
- DataSourceSelectArguments.cs
- UserValidatedEventArgs.cs
- SynchronizedMessageSource.cs
- WorkflowDesignerMessageFilter.cs
- PictureBox.cs
- CompiledXpathExpr.cs
- SliderAutomationPeer.cs
- XPathDocumentNavigator.cs
- GridViewDeletedEventArgs.cs
- XXXOnTypeBuilderInstantiation.cs
- ContainerTracking.cs
- PeerApplication.cs
- XamlWrappingReader.cs
- HttpDictionary.cs
- RequestCacheEntry.cs
- DragStartedEventArgs.cs
- SatelliteContractVersionAttribute.cs
- Scheduler.cs
- CacheHelper.cs
- PeerCollaboration.cs
- ButtonStandardAdapter.cs
- ComponentDispatcherThread.cs
- BreakRecordTable.cs
- DataGridViewColumnConverter.cs
- FactoryGenerator.cs
- SmiXetterAccessMap.cs
- ControlHelper.cs
- EntityClientCacheEntry.cs
- IndependentAnimationStorage.cs
- XmlEnumAttribute.cs
- ServiceHttpHandlerFactory.cs
- RecognitionEventArgs.cs
- TabControlAutomationPeer.cs
- TextRangeSerialization.cs
- QueryPageSettingsEventArgs.cs
- FigureParagraph.cs
- ImageIndexConverter.cs
- InvalidComObjectException.cs
- XPathScanner.cs
- Marshal.cs
- HttpWebRequest.cs
- TextEditorThreadLocalStore.cs
- ColorIndependentAnimationStorage.cs
- TextContainerHelper.cs
- BitmapEffectDrawingContent.cs
- MatrixValueSerializer.cs
- DeviceFilterDictionary.cs
- ComponentResourceKeyConverter.cs
- SerializationTrace.cs
- MarkupCompiler.cs
- ObjectViewListener.cs
- TypeUtil.cs
- WindowsUpDown.cs
- ArrayList.cs
- PipelineDeploymentState.cs
- GetPageNumberCompletedEventArgs.cs
- Faults.cs
- DesignBindingValueUIHandler.cs
- ApplicationServiceManager.cs
- AttachInfo.cs
- FlowNode.cs
- UnsafeNativeMethods.cs
- AutoGeneratedFieldProperties.cs
- EditorAttribute.cs
- ConnectionManagementSection.cs
- BulletedList.cs
- CurrentTimeZone.cs
- TableAutomationPeer.cs
- TreeView.cs
- ServiceHttpModule.cs
- DispatchWrapper.cs
- WebCategoryAttribute.cs
- PaperSource.cs
- HtmlEmptyTagControlBuilder.cs
- SqlClientMetaDataCollectionNames.cs
- TreeChangeInfo.cs
- HttpListenerRequestUriBuilder.cs
- SettingsContext.cs
- COM2ExtendedBrowsingHandler.cs
- FormatterConverter.cs
- IntegerCollectionEditor.cs
- ResourcesChangeInfo.cs