Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- EditingMode.cs
- BorderGapMaskConverter.cs
- TimersDescriptionAttribute.cs
- VBCodeProvider.cs
- EdmType.cs
- SlotInfo.cs
- SecurityTokenException.cs
- ExtensionQuery.cs
- GeometryValueSerializer.cs
- DeadCharTextComposition.cs
- PerformanceCounterPermission.cs
- IPPacketInformation.cs
- activationcontext.cs
- BufferAllocator.cs
- XmlAnyElementAttributes.cs
- SqlDataSourceStatusEventArgs.cs
- PathTooLongException.cs
- ToolboxItemCollection.cs
- SR.Designer.cs
- XmlObjectSerializerReadContext.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- DbDataReader.cs
- UserControlFileEditor.cs
- DataGridItemCollection.cs
- oledbconnectionstring.cs
- DictationGrammar.cs
- QuaternionAnimation.cs
- ContentElementAutomationPeer.cs
- SchemeSettingElementCollection.cs
- ProtocolsConfigurationEntry.cs
- MaterialCollection.cs
- Rethrow.cs
- XhtmlConformanceSection.cs
- BuildResultCache.cs
- RectAnimationUsingKeyFrames.cs
- CompilerScope.Storage.cs
- TypeSystem.cs
- Pts.cs
- SqlReferenceCollection.cs
- PerfCounterSection.cs
- AccessKeyManager.cs
- PersonalizationStateQuery.cs
- EntityDataSourceColumn.cs
- ClientFormsIdentity.cs
- Grant.cs
- ConfigurationSectionCollection.cs
- XmlSchemaSimpleTypeRestriction.cs
- WebControlParameterProxy.cs
- Parameter.cs
- ReadOnlyCollectionBase.cs
- ArrangedElementCollection.cs
- ClientSettingsStore.cs
- DirectoryObjectSecurity.cs
- DoubleLinkListEnumerator.cs
- SHA256.cs
- GridViewColumnCollectionChangedEventArgs.cs
- AssertSection.cs
- DesignColumnCollection.cs
- Socket.cs
- ListControlConvertEventArgs.cs
- KeyValueInternalCollection.cs
- WebPartTransformerAttribute.cs
- ScriptMethodAttribute.cs
- RadioButtonAutomationPeer.cs
- GeneralTransformGroup.cs
- TranslateTransform.cs
- NetworkAddressChange.cs
- Point.cs
- SessionPageStatePersister.cs
- GC.cs
- RegisteredHiddenField.cs
- ApplicationDirectory.cs
- XamlTreeBuilder.cs
- ThemeDirectoryCompiler.cs
- FamilyMap.cs
- Pool.cs
- GridViewPageEventArgs.cs
- WsdlInspector.cs
- SizeIndependentAnimationStorage.cs
- CodeMemberMethod.cs
- TriState.cs
- QuaternionAnimation.cs
- ServiceAppDomainAssociationProvider.cs
- IConvertible.cs
- SetterBase.cs
- MappingItemCollection.cs
- IisTraceWebEventProvider.cs
- InternalPolicyElement.cs
- ADMembershipProvider.cs
- WindowsToolbar.cs
- WeakReferenceEnumerator.cs
- QilPatternFactory.cs
- TextServicesHost.cs
- cookiecontainer.cs
- Pens.cs
- CodeDomComponentSerializationService.cs
- ExtendedPropertyInfo.cs
- EnumerationRangeValidationUtil.cs
- Duration.cs
- RefreshEventArgs.cs