Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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.
[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
- WindowsListViewScroll.cs
- ReadOnlyCollectionBase.cs
- AvTraceFormat.cs
- XAMLParseException.cs
- WeakReference.cs
- ISAPIRuntime.cs
- GlyphTypeface.cs
- CodeEventReferenceExpression.cs
- Oci.cs
- TextDecorationUnitValidation.cs
- xml.cs
- Dictionary.cs
- NativeBuffer.cs
- XmlDocumentViewSchema.cs
- GridViewDeletedEventArgs.cs
- JsonClassDataContract.cs
- PageHandlerFactory.cs
- QuaternionValueSerializer.cs
- AxisAngleRotation3D.cs
- AxParameterData.cs
- XmlDeclaration.cs
- EllipseGeometry.cs
- FixedSOMImage.cs
- FormatVersion.cs
- ToolStripOverflowButton.cs
- Brush.cs
- ConfigPathUtility.cs
- Console.cs
- CodeNamespaceCollection.cs
- VisualBasicSettingsHandler.cs
- GenerateScriptTypeAttribute.cs
- FlowDocumentPage.cs
- GridViewPageEventArgs.cs
- FeatureSupport.cs
- HtmlInputText.cs
- Reference.cs
- TriggerAction.cs
- XmlQueryType.cs
- DoubleLink.cs
- InstancePersistenceContext.cs
- EmptyReadOnlyDictionaryInternal.cs
- UTF32Encoding.cs
- TextHintingModeValidation.cs
- StyleSheetDesigner.cs
- LoginUtil.cs
- StreamSecurityUpgradeInitiator.cs
- UrlMappingsSection.cs
- GeneralTransform3DGroup.cs
- XmlEventCache.cs
- SelectingProviderEventArgs.cs
- FormViewModeEventArgs.cs
- StatusBarPanel.cs
- AssociationSetMetadata.cs
- RelatedCurrencyManager.cs
- User.cs
- DefaultCompensation.cs
- Buffer.cs
- HostedElements.cs
- TextSerializer.cs
- TypeElementCollection.cs
- FastPropertyAccessor.cs
- HtmlSelect.cs
- Zone.cs
- BufferedWebEventProvider.cs
- GradientBrush.cs
- DynamicRendererThreadManager.cs
- sqlpipe.cs
- CompoundFileIOPermission.cs
- RegexRunnerFactory.cs
- Sequence.cs
- MenuBase.cs
- SchemaImporter.cs
- AutomationFocusChangedEventArgs.cs
- CreateInstanceBinder.cs
- XDeferredAxisSource.cs
- PropertySourceInfo.cs
- RegexMatchCollection.cs
- GreenMethods.cs
- ThousandthOfEmRealDoubles.cs
- _BasicClient.cs
- SystemColors.cs
- XmlSchemaSimpleType.cs
- URI.cs
- EntityContainerEmitter.cs
- UInt64.cs
- UrlAuthorizationModule.cs
- ListSortDescription.cs
- ColumnWidthChangedEvent.cs
- UnknownBitmapEncoder.cs
- ColorComboBox.cs
- ScriptingProfileServiceSection.cs
- IOThreadScheduler.cs
- BaseEntityWrapper.cs
- RemoteWebConfigurationHost.cs
- Identity.cs
- WebFormDesignerActionService.cs
- TreeViewItemAutomationPeer.cs
- CommentEmitter.cs
- DCSafeHandle.cs
- ProviderUtil.cs