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
- PrintDialog.cs
- EditBehavior.cs
- QueryRewriter.cs
- RoutedUICommand.cs
- CodeTypeMember.cs
- Token.cs
- RegexGroup.cs
- VectorCollectionConverter.cs
- StateMachineHelpers.cs
- StrokeIntersection.cs
- TitleStyle.cs
- ConfigXmlText.cs
- MULTI_QI.cs
- CacheRequest.cs
- SafeBitVector32.cs
- ServerIdentity.cs
- ExpressionStringBuilder.cs
- TimerElapsedEvenArgs.cs
- StorageMappingItemCollection.cs
- _DomainName.cs
- ValuePattern.cs
- SafePEFileHandle.cs
- MobileListItem.cs
- BindToObject.cs
- WindowsMenu.cs
- DeadCharTextComposition.cs
- AffineTransform3D.cs
- SQLGuidStorage.cs
- CodeSnippetCompileUnit.cs
- PrefixHandle.cs
- Asn1IntegerConverter.cs
- Decoder.cs
- RenderData.cs
- FontDriver.cs
- SwitchCase.cs
- Cell.cs
- InvalidateEvent.cs
- VerbConverter.cs
- TypeInitializationException.cs
- HttpApplication.cs
- XmlWriterTraceListener.cs
- WebPermission.cs
- Decoder.cs
- MemberCollection.cs
- RecipientInfo.cs
- LocationUpdates.cs
- StateMachineAction.cs
- XPathDocument.cs
- ItemCheckedEvent.cs
- WSSecurityTokenSerializer.cs
- OleDbRowUpdatedEvent.cs
- EmptyReadOnlyDictionaryInternal.cs
- PipelineDeploymentState.cs
- BamlTreeUpdater.cs
- DataTableNameHandler.cs
- BCLDebug.cs
- AssertSection.cs
- XamlTreeBuilder.cs
- SettingsPropertyWrongTypeException.cs
- Command.cs
- UnsafeNativeMethods.cs
- SymbolPair.cs
- CellTreeNodeVisitors.cs
- InstanceNotReadyException.cs
- SqlCacheDependency.cs
- XmlSchemaAnnotation.cs
- UnsafeNativeMethods.cs
- COM2PropertyBuilderUITypeEditor.cs
- AxisAngleRotation3D.cs
- ResXResourceReader.cs
- OracleRowUpdatingEventArgs.cs
- DataServiceHostFactory.cs
- ModelUtilities.cs
- ActivityValidator.cs
- FrameDimension.cs
- BufferAllocator.cs
- HtmlSelect.cs
- DataBindingCollectionConverter.cs
- Vector3DAnimationBase.cs
- TextTreeNode.cs
- DistributedTransactionPermission.cs
- Viewport3DAutomationPeer.cs
- VirtualDirectoryMappingCollection.cs
- SoundPlayerAction.cs
- TypeValidationEventArgs.cs
- BasicExpandProvider.cs
- ListItemsCollectionEditor.cs
- DetailsViewPagerRow.cs
- pingexception.cs
- SymLanguageVendor.cs
- ToolStripGrip.cs
- FunctionImportMapping.cs
- HandlerBase.cs
- XmlUnspecifiedAttribute.cs
- ExceptionRoutedEventArgs.cs
- NameTable.cs
- SQlBooleanStorage.cs
- LeafCellTreeNode.cs
- UncommonField.cs
- ResourceCategoryAttribute.cs