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
- ThrowOnMultipleAssignment.cs
- Attributes.cs
- WorkflowMarkupSerializer.cs
- OciHandle.cs
- FileUpload.cs
- CertificateElement.cs
- InstalledFontCollection.cs
- DaylightTime.cs
- Authorization.cs
- ShapingWorkspace.cs
- GeneralTransform3D.cs
- StreamUpdate.cs
- BufferedStream2.cs
- MembershipValidatePasswordEventArgs.cs
- ModulesEntry.cs
- TextTreeObjectNode.cs
- TransformProviderWrapper.cs
- WebSysDefaultValueAttribute.cs
- XmlName.cs
- SQLSingle.cs
- Size3DConverter.cs
- SystemBrushes.cs
- UriSection.cs
- ComponentDispatcher.cs
- TogglePatternIdentifiers.cs
- EditingCoordinator.cs
- FlowDocument.cs
- System.Data.OracleClient_BID.cs
- Message.cs
- XamlTemplateSerializer.cs
- LoginDesignerUtil.cs
- XmlQueryType.cs
- NameValuePermission.cs
- ProcessDesigner.cs
- ClientBuildManagerCallback.cs
- ExtendedPropertyDescriptor.cs
- UTF7Encoding.cs
- Viewport2DVisual3D.cs
- Delegate.cs
- PackageDigitalSignature.cs
- ProcessHost.cs
- XmlConvert.cs
- DrawingVisualDrawingContext.cs
- DataControlButton.cs
- StringSorter.cs
- SspiSecurityTokenProvider.cs
- _AutoWebProxyScriptWrapper.cs
- HttpWriter.cs
- StateChangeEvent.cs
- WmlObjectListAdapter.cs
- IndexerNameAttribute.cs
- BamlLocalizabilityResolver.cs
- ValueType.cs
- WindowsImpersonationContext.cs
- StateBag.cs
- DataGridViewTopLeftHeaderCell.cs
- MappingItemCollection.cs
- WindowsPen.cs
- ServiceModelSecurityTokenRequirement.cs
- SqlCommandBuilder.cs
- UnsafeNativeMethodsPenimc.cs
- SpotLight.cs
- HtmlContainerControl.cs
- XmlReflectionMember.cs
- UriExt.cs
- GradientSpreadMethodValidation.cs
- WebPartConnectionsEventArgs.cs
- ResourceAttributes.cs
- FaultDescription.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- WebPartEditorCancelVerb.cs
- InputProcessorProfilesLoader.cs
- SqlInternalConnectionTds.cs
- DataViewSettingCollection.cs
- SymbolType.cs
- SiteMapDataSource.cs
- PaperSource.cs
- QuotedPrintableStream.cs
- TransformCollection.cs
- Win32KeyboardDevice.cs
- DynamicILGenerator.cs
- DefaultBinder.cs
- HitTestDrawingContextWalker.cs
- GeneralTransformGroup.cs
- PassportAuthentication.cs
- OdbcConnectionStringbuilder.cs
- TextProperties.cs
- LambdaCompiler.Lambda.cs
- _SafeNetHandles.cs
- AppDomainShutdownMonitor.cs
- PartEditor.cs
- PathSegmentCollection.cs
- HtmlTableRowCollection.cs
- GridSplitter.cs
- storepermissionattribute.cs
- COM2ExtendedUITypeEditor.cs
- _HTTPDateParse.cs
- XPathException.cs
- SemanticResultValue.cs
- TcpChannelHelper.cs