Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / WindowsFormsSectionHandler.cs / 1305376 / 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
- DnsPermission.cs
- GestureRecognitionResult.cs
- SQLInt64Storage.cs
- DefaultCommandExtensionCallback.cs
- CompilerState.cs
- EntityModelSchemaGenerator.cs
- ListBindableAttribute.cs
- InvalidFilterCriteriaException.cs
- ObjectListShowCommandsEventArgs.cs
- HttpRuntimeSection.cs
- WindowHelperService.cs
- RequestSecurityTokenResponse.cs
- BinaryCommonClasses.cs
- DispatcherTimer.cs
- ClientScriptManager.cs
- StringConverter.cs
- unsafenativemethodsother.cs
- HttpApplicationStateWrapper.cs
- SlotInfo.cs
- SoapExtensionTypeElementCollection.cs
- XPathArrayIterator.cs
- XmlNodeChangedEventManager.cs
- RedirectionProxy.cs
- DataFieldConverter.cs
- TraceData.cs
- XmlWrappingWriter.cs
- OracleSqlParser.cs
- SimpleRecyclingCache.cs
- ToolboxItemFilterAttribute.cs
- CharAnimationBase.cs
- TransformerTypeCollection.cs
- StreamSecurityUpgradeAcceptorBase.cs
- DataServiceRequest.cs
- Paragraph.cs
- RuleProcessor.cs
- Lease.cs
- coordinatorfactory.cs
- PartialCachingAttribute.cs
- ProfileModule.cs
- ValueConversionAttribute.cs
- Compiler.cs
- PerformanceCounterPermission.cs
- AtlasWeb.Designer.cs
- IItemProperties.cs
- EnumConverter.cs
- DataObjectSettingDataEventArgs.cs
- MaterialCollection.cs
- JsonGlobals.cs
- ActivityDesignerResources.cs
- PointAnimationUsingKeyFrames.cs
- WindowPattern.cs
- BamlRecords.cs
- XmlStreamStore.cs
- VirtualDirectoryMappingCollection.cs
- CredentialCache.cs
- HtmlObjectListAdapter.cs
- MobileComponentEditorPage.cs
- FrameAutomationPeer.cs
- EditingCoordinator.cs
- CompilerTypeWithParams.cs
- ConfigErrorGlyph.cs
- CommonDialog.cs
- Calendar.cs
- CultureInfo.cs
- x509utils.cs
- WindowsFormsLinkLabel.cs
- LinqDataSourceInsertEventArgs.cs
- BitArray.cs
- KeyBinding.cs
- ButtonChrome.cs
- FormsAuthenticationConfiguration.cs
- MemoryStream.cs
- TypeUtils.cs
- MouseWheelEventArgs.cs
- XPathAxisIterator.cs
- SourceFileBuildProvider.cs
- WebSysDescriptionAttribute.cs
- ByteRangeDownloader.cs
- NotConverter.cs
- ComponentResourceManager.cs
- XmlComplianceUtil.cs
- AdornerPresentationContext.cs
- MenuCommandsChangedEventArgs.cs
- Rotation3DAnimationBase.cs
- DataGridViewRowPrePaintEventArgs.cs
- Thickness.cs
- TextComposition.cs
- GridProviderWrapper.cs
- TreeViewBindingsEditor.cs
- Win32KeyboardDevice.cs
- ConfigurationSection.cs
- __Error.cs
- MenuItemStyle.cs
- NameValueCollection.cs
- CustomErrorsSectionWrapper.cs
- InstanceNameConverter.cs
- SelectionListComponentEditor.cs
- Configuration.cs
- AuthStoreRoleProvider.cs
- EditorPart.cs