Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CounterSampleCalculator.cs
- ChannelPoolSettingsElement.cs
- MethodBody.cs
- XPathParser.cs
- SqlExpander.cs
- HttpCookiesSection.cs
- TaiwanLunisolarCalendar.cs
- ToolBarTray.cs
- HttpFileCollection.cs
- DocumentViewer.cs
- MobileFormsAuthentication.cs
- WebConfigurationFileMap.cs
- TcpDuplicateContext.cs
- InputScope.cs
- ThousandthOfEmRealDoubles.cs
- PageCache.cs
- StandardOleMarshalObject.cs
- WebExceptionStatus.cs
- Positioning.cs
- AssociationType.cs
- TraceListeners.cs
- ETagAttribute.cs
- SmtpAuthenticationManager.cs
- WindowsHyperlink.cs
- MonthCalendarDesigner.cs
- IISMapPath.cs
- LocalizeDesigner.cs
- BaseServiceProvider.cs
- IgnoreSection.cs
- DesignerTransactionCloseEvent.cs
- WebScriptEnablingElement.cs
- DoubleConverter.cs
- TdsParserStaticMethods.cs
- _ScatterGatherBuffers.cs
- SqlTriggerContext.cs
- RedBlackList.cs
- UDPClient.cs
- MethodToken.cs
- OwnerDrawPropertyBag.cs
- XmlWrappingReader.cs
- PropertyMetadata.cs
- NumberAction.cs
- SystemIPInterfaceProperties.cs
- FixedPageStructure.cs
- ViewPort3D.cs
- CommandBinding.cs
- AVElementHelper.cs
- ResourceSetExpression.cs
- WindowsFormsHost.cs
- CDSCollectionETWBCLProvider.cs
- AllowedAudienceUriElement.cs
- LeftCellWrapper.cs
- Authorization.cs
- EpmHelper.cs
- WebBrowserNavigatingEventHandler.cs
- DataRecordInternal.cs
- SerialErrors.cs
- SizeConverter.cs
- ElementProxy.cs
- HttpHandlerActionCollection.cs
- CodeDomLocalizationProvider.cs
- TimeSpanValidatorAttribute.cs
- SystemIcmpV6Statistics.cs
- DateTimeFormat.cs
- ContentPresenter.cs
- MenuRendererClassic.cs
- CompareValidator.cs
- SqlConnectionString.cs
- OleDbDataAdapter.cs
- DataGridTextBoxColumn.cs
- ThemeInfoAttribute.cs
- SQLUtility.cs
- EventEntry.cs
- RoleManagerModule.cs
- KeyboardDevice.cs
- OpCodes.cs
- _WebProxyDataBuilder.cs
- UpdateEventArgs.cs
- Triplet.cs
- CodeEventReferenceExpression.cs
- ObjectSet.cs
- RepeatBehaviorConverter.cs
- SqlDataSourceConfigureSortForm.cs
- DeobfuscatingStream.cs
- TTSEvent.cs
- XamlInt32CollectionSerializer.cs
- WebPartAddingEventArgs.cs
- TextEditorMouse.cs
- IisTraceListener.cs
- DockPattern.cs
- WebPartConnectionsEventArgs.cs
- GenerateTemporaryTargetAssembly.cs
- HelpKeywordAttribute.cs
- CompilerTypeWithParams.cs
- TabControl.cs
- CommandPlan.cs
- TaskHelper.cs
- DataControlField.cs
- TreeBuilderXamlTranslator.cs
- EventSinkHelperWriter.cs