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
- RangeContentEnumerator.cs
- BuildResult.cs
- PermissionSetTriple.cs
- BuildProvidersCompiler.cs
- RectangleHotSpot.cs
- UserValidatedEventArgs.cs
- MetadataUtilsSmi.cs
- XmlAttributeCache.cs
- SqlSelectStatement.cs
- DurationConverter.cs
- XmlFormatMapping.cs
- Pointer.cs
- MappingItemCollection.cs
- FileCodeGroup.cs
- ManifestResourceInfo.cs
- PersonalizablePropertyEntry.cs
- HotSpot.cs
- WebPartEditorCancelVerb.cs
- XappLauncher.cs
- XmlQualifiedName.cs
- SessionEndingEventArgs.cs
- ToolStripSeparator.cs
- SafeTokenHandle.cs
- _NegoState.cs
- ListParaClient.cs
- ManagementExtension.cs
- DesignerSerializationOptionsAttribute.cs
- SecurityDocument.cs
- PermissionSetTriple.cs
- ThreadPoolTaskScheduler.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- Subtree.cs
- GridViewPageEventArgs.cs
- SafeBitVector32.cs
- ColumnResult.cs
- CompositeFontParser.cs
- QilSortKey.cs
- ZipIOCentralDirectoryBlock.cs
- StateChangeEvent.cs
- DbProviderManifest.cs
- InternalConfigSettingsFactory.cs
- UnmanagedBitmapWrapper.cs
- WindowsFont.cs
- xsdvalidator.cs
- OleDbTransaction.cs
- EditorAttributeInfo.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- HttpContext.cs
- Debug.cs
- ProfileServiceManager.cs
- RestHandler.cs
- CachingHintValidation.cs
- LongValidator.cs
- FormatterServices.cs
- ArraySet.cs
- EditorPartCollection.cs
- XmlWhitespace.cs
- Keyboard.cs
- ToolStripDropDownMenu.cs
- MasterPageBuildProvider.cs
- EmbeddedMailObject.cs
- ConvertBinder.cs
- X509SecurityTokenProvider.cs
- ActivationProxy.cs
- MessageDecoder.cs
- ServiceDescriptionSerializer.cs
- WebBrowserSiteBase.cs
- Panel.cs
- CompiledELinqQueryState.cs
- ZipIOModeEnforcingStream.cs
- UpdatePanelControlTrigger.cs
- UnsafeNativeMethods.cs
- ListSourceHelper.cs
- CorrelationScope.cs
- MultilineStringEditor.cs
- ObjectQueryExecutionPlan.cs
- ScriptingSectionGroup.cs
- PeerNode.cs
- SvcMapFile.cs
- RewritingSimplifier.cs
- StrokeNode.cs
- SqlDataSourceAdvancedOptionsForm.cs
- MessagingDescriptionAttribute.cs
- WaitForChangedResult.cs
- WindowsGraphicsCacheManager.cs
- SoapObjectReader.cs
- CallbackValidator.cs
- SchemaElement.cs
- CompatibleComparer.cs
- Process.cs
- WmpBitmapDecoder.cs
- NameSpaceEvent.cs
- StatusBar.cs
- InputMethodStateChangeEventArgs.cs
- AsyncOperationManager.cs
- PermissionAttributes.cs
- XPathNodeHelper.cs
- CancelEventArgs.cs
- ComponentCollection.cs
- TextHidden.cs