Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- SaveCardRequest.cs
- ListViewItemMouseHoverEvent.cs
- RectKeyFrameCollection.cs
- SafeMILHandleMemoryPressure.cs
- SendOperation.cs
- Stopwatch.cs
- WebBodyFormatMessageProperty.cs
- TypeSystemHelpers.cs
- OleDbConnectionFactory.cs
- ServicePointManagerElement.cs
- UnmanagedMarshal.cs
- KeyPullup.cs
- LongValidatorAttribute.cs
- bidPrivateBase.cs
- ProviderSettingsCollection.cs
- WebPartZone.cs
- Point3DCollectionValueSerializer.cs
- DictionaryBase.cs
- IODescriptionAttribute.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- SharedPersonalizationStateInfo.cs
- EncoderBestFitFallback.cs
- AdornerDecorator.cs
- DocumentAutomationPeer.cs
- HostProtectionException.cs
- ColumnTypeConverter.cs
- HttpHostedTransportConfiguration.cs
- ProcessInputEventArgs.cs
- UInt32Converter.cs
- WmlLiteralTextAdapter.cs
- CurrentChangingEventArgs.cs
- ControlFilterExpression.cs
- TileModeValidation.cs
- ResizeGrip.cs
- Property.cs
- SqlDependency.cs
- NameObjectCollectionBase.cs
- DesignerPerfEventProvider.cs
- BulletedList.cs
- Size3DConverter.cs
- BezierSegment.cs
- Msec.cs
- SqlExpressionNullability.cs
- InkCanvasFeedbackAdorner.cs
- WindowsClaimSet.cs
- WebHttpBindingElement.cs
- ValidationHelpers.cs
- RawKeyboardInputReport.cs
- DesignerDataRelationship.cs
- ModifiableIteratorCollection.cs
- FieldMetadata.cs
- OutOfProcStateClientManager.cs
- PrivilegeNotHeldException.cs
- PrintDialog.cs
- MediaCommands.cs
- XmlWriter.cs
- DataDesignUtil.cs
- DefaultBinder.cs
- DataGridViewColumnCollection.cs
- SafeMemoryMappedViewHandle.cs
- BamlBinaryWriter.cs
- DoubleAnimationClockResource.cs
- MULTI_QI.cs
- FlowDocumentPage.cs
- FocusChangedEventArgs.cs
- EntityDescriptor.cs
- ImageListStreamer.cs
- FileUtil.cs
- DataTableClearEvent.cs
- TouchPoint.cs
- ResourcesChangeInfo.cs
- DoubleSumAggregationOperator.cs
- NextPreviousPagerField.cs
- AttributeEmitter.cs
- IIS7WorkerRequest.cs
- PathFigureCollection.cs
- Dictionary.cs
- FontCacheLogic.cs
- ElementsClipboardData.cs
- Convert.cs
- COM2IDispatchConverter.cs
- Expr.cs
- HttpPostLocalhostServerProtocol.cs
- DBSchemaRow.cs
- ComPlusDiagnosticTraceRecords.cs
- OrderByLifter.cs
- ExpandoObject.cs
- FixedFlowMap.cs
- StylusPointPropertyUnit.cs
- SpellerInterop.cs
- InputLanguage.cs
- ResourceCategoryAttribute.cs
- FormView.cs
- XPathNavigatorKeyComparer.cs
- ComponentGlyph.cs
- X509CertificateStore.cs
- HttpChannelListener.cs
- StrongNameKeyPair.cs
- MessageAction.cs
- StylusDownEventArgs.cs