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
- HttpCachePolicy.cs
- InvalidOleVariantTypeException.cs
- WebPartsSection.cs
- ResourceManager.cs
- GPStream.cs
- WebBrowserHelper.cs
- InheritablePropertyChangeInfo.cs
- ImageCodecInfo.cs
- ConnectionPointCookie.cs
- tooltip.cs
- GetPageCompletedEventArgs.cs
- SystemIPGlobalProperties.cs
- TextWriter.cs
- TableLayoutSettings.cs
- _SSPISessionCache.cs
- OpenFileDialog.cs
- CachingHintValidation.cs
- CatalogPartChrome.cs
- ApplicationBuildProvider.cs
- ReadingWritingEntityEventArgs.cs
- ProtocolInformationReader.cs
- XmlObjectSerializerContext.cs
- WinEventQueueItem.cs
- BulletedList.cs
- DiscriminatorMap.cs
- Soap12ProtocolImporter.cs
- IOThreadTimer.cs
- ViewPort3D.cs
- Rules.cs
- ApplicationSecurityManager.cs
- StylusCaptureWithinProperty.cs
- ScalarConstant.cs
- SqlInternalConnectionTds.cs
- DataListItemCollection.cs
- TableCellCollection.cs
- SessionStateContainer.cs
- EntityContainerEntitySet.cs
- IPeerNeighbor.cs
- EventData.cs
- Container.cs
- Nullable.cs
- ClientSession.cs
- QueryOperationResponseOfT.cs
- DrawingVisual.cs
- XmlSchemaSimpleType.cs
- PermissionSetTriple.cs
- DelayLoadType.cs
- IMembershipProvider.cs
- Ticks.cs
- BaseParser.cs
- PauseStoryboard.cs
- WebPartDescription.cs
- TextCompositionEventArgs.cs
- ServerReliableChannelBinder.cs
- Light.cs
- DynamicField.cs
- LicenseProviderAttribute.cs
- RequestBringIntoViewEventArgs.cs
- FileSystemEventArgs.cs
- UIElement3DAutomationPeer.cs
- Blend.cs
- ZipIOCentralDirectoryFileHeader.cs
- XmlUtf8RawTextWriter.cs
- ProxyElement.cs
- LogAppendAsyncResult.cs
- X509ScopedServiceCertificateElement.cs
- CodeCastExpression.cs
- CodeGroup.cs
- MemberInfoSerializationHolder.cs
- XmlSchemaCollection.cs
- Catch.cs
- ClipboardProcessor.cs
- TargetFrameworkUtil.cs
- FileNameEditor.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- DataServiceQuery.cs
- Selector.cs
- HttpModuleActionCollection.cs
- xdrvalidator.cs
- TimeoutHelper.cs
- DataControlLinkButton.cs
- Not.cs
- PopOutPanel.cs
- PersonalizationProvider.cs
- RuleSetDialog.Designer.cs
- Color.cs
- PriorityChain.cs
- TypeUnloadedException.cs
- CatalogPartChrome.cs
- TextEditorContextMenu.cs
- LicFileLicenseProvider.cs
- SqlBulkCopy.cs
- CodeDomDecompiler.cs
- Region.cs
- TextParentUndoUnit.cs
- FormViewDeleteEventArgs.cs
- Assembly.cs
- ContextItemManager.cs
- DrawingAttributeSerializer.cs
- DbConnectionInternal.cs