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
- XXXInfos.cs
- Subtree.cs
- ImageList.cs
- OpenFileDialog.cs
- ResourcePermissionBaseEntry.cs
- PageParserFilter.cs
- Win32MouseDevice.cs
- SafeNativeMethodsMilCoreApi.cs
- MergePropertyDescriptor.cs
- CodeValidator.cs
- XmlWhitespace.cs
- Root.cs
- dataobject.cs
- ObjRef.cs
- SecureEnvironment.cs
- KeyNotFoundException.cs
- WorkflowInstanceAbortedRecord.cs
- DATA_BLOB.cs
- CurrencyWrapper.cs
- XmlSerializerSection.cs
- MessageAction.cs
- VisualState.cs
- ManagementObject.cs
- DiagnosticsConfiguration.cs
- DataGrid.cs
- Pens.cs
- basemetadatamappingvisitor.cs
- IPipelineRuntime.cs
- ServiceModelEnhancedConfigurationElementCollection.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- XmlSchemaIdentityConstraint.cs
- OleStrCAMarshaler.cs
- BufferedWebEventProvider.cs
- InstanceCreationEditor.cs
- SessionStateModule.cs
- IdleTimeoutMonitor.cs
- TextDecorationCollection.cs
- Shared.cs
- IISMapPath.cs
- DataColumnMapping.cs
- QueryOutputWriter.cs
- GrammarBuilderBase.cs
- StateManagedCollection.cs
- SimpleTypesSurrogate.cs
- WizardForm.cs
- WebPartTransformer.cs
- hresults.cs
- CreateParams.cs
- ServiceHttpModule.cs
- RotateTransform3D.cs
- BaseEntityWrapper.cs
- OnOperation.cs
- ListBoxItemAutomationPeer.cs
- DataTableNewRowEvent.cs
- Operators.cs
- AutomationIdentifier.cs
- SQLDateTimeStorage.cs
- ActivitySurrogate.cs
- DispatcherExceptionEventArgs.cs
- List.cs
- MultipleViewProviderWrapper.cs
- ZipIOCentralDirectoryBlock.cs
- DataSvcMapFileSerializer.cs
- ScrollEventArgs.cs
- Domain.cs
- DesignerTransaction.cs
- Translator.cs
- AssemblyCache.cs
- WindowsFormsSectionHandler.cs
- AutoGeneratedFieldProperties.cs
- XmlIlVisitor.cs
- RichTextBoxConstants.cs
- ErrorEventArgs.cs
- HtmlProps.cs
- SelectionRangeConverter.cs
- BitmapFrameDecode.cs
- GridViewItemAutomationPeer.cs
- Codec.cs
- UpDownBaseDesigner.cs
- SystemResourceHost.cs
- UnsafeNativeMethods.cs
- FileDialog_Vista_Interop.cs
- EncodingInfo.cs
- DrawingContext.cs
- DoubleStorage.cs
- GeneralTransform2DTo3DTo2D.cs
- TimeSpan.cs
- COAUTHINFO.cs
- DataControlFieldHeaderCell.cs
- DBSchemaRow.cs
- SerializerProvider.cs
- XsdCachingReader.cs
- TheQuery.cs
- MachineKeyConverter.cs
- PropertyPathWorker.cs
- CryptoStream.cs
- TemporaryBitmapFile.cs
- ChtmlFormAdapter.cs
- SqlMetaData.cs
- DataViewSettingCollection.cs