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
- HMACRIPEMD160.cs
- RuntimeEnvironment.cs
- WebBrowserSiteBase.cs
- CodeAttributeDeclaration.cs
- ImageMap.cs
- XamlBrushSerializer.cs
- CommandConverter.cs
- XmlNamedNodeMap.cs
- StructuralObject.cs
- _FixedSizeReader.cs
- ScalarConstant.cs
- StringTraceRecord.cs
- FixUp.cs
- EmptyElement.cs
- _NetRes.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- Pen.cs
- XPathEmptyIterator.cs
- WebPartDescriptionCollection.cs
- DataContext.cs
- DoubleCollectionConverter.cs
- IISUnsafeMethods.cs
- StylusPointPropertyInfoDefaults.cs
- TextAutomationPeer.cs
- ExpressionPrinter.cs
- DefaultCommandConverter.cs
- RequestQueue.cs
- WebRequestModuleElementCollection.cs
- XXXOnTypeBuilderInstantiation.cs
- StringComparer.cs
- _CacheStreams.cs
- PerspectiveCamera.cs
- DynamicControl.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- InternalSafeNativeMethods.cs
- HeaderCollection.cs
- RTTypeWrapper.cs
- ComponentGlyph.cs
- XmlSchemaSimpleContent.cs
- SelectionItemProviderWrapper.cs
- DataGridPagerStyle.cs
- MLangCodePageEncoding.cs
- AccessViolationException.cs
- BitVector32.cs
- _NegoState.cs
- PartitionResolver.cs
- SvcFileManager.cs
- RequestCachingSection.cs
- TextLineBreak.cs
- SafeHandle.cs
- DesignerRegionMouseEventArgs.cs
- CompilerGeneratedAttribute.cs
- MouseBinding.cs
- __ConsoleStream.cs
- TextUtf8RawTextWriter.cs
- ConfigurationElementProperty.cs
- IPEndPoint.cs
- WebPartActionVerb.cs
- ColumnWidthChangedEvent.cs
- RuleSetCollection.cs
- Visual.cs
- MdbDataFileEditor.cs
- CollectionViewGroupRoot.cs
- _SslSessionsCache.cs
- FontUnitConverter.cs
- StickyNoteAnnotations.cs
- _UriTypeConverter.cs
- IxmlLineInfo.cs
- MembershipSection.cs
- ScrollChrome.cs
- _StreamFramer.cs
- SiteIdentityPermission.cs
- KeyToListMap.cs
- WorkflowServiceHostFactory.cs
- XamlGridLengthSerializer.cs
- SqlDataSourceCommandEventArgs.cs
- HttpHandlerActionCollection.cs
- ModifierKeysConverter.cs
- FrameSecurityDescriptor.cs
- XmlSchemaObjectTable.cs
- DefaultValidator.cs
- MostlySingletonList.cs
- ByteStream.cs
- TypeForwardedToAttribute.cs
- XmlAttributeCollection.cs
- HealthMonitoringSection.cs
- XPathItem.cs
- DriveNotFoundException.cs
- ISO2022Encoding.cs
- String.cs
- DeferredReference.cs
- KnownTypeAttribute.cs
- HttpValueCollection.cs
- Automation.cs
- CompilerHelpers.cs
- WindowsFormsDesignerOptionService.cs
- PrintDialogException.cs
- LoginViewDesigner.cs
- HttpCapabilitiesBase.cs
- ColumnClickEvent.cs