Code:
/ DotNET / DotNET / 8.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
- DelegatingConfigHost.cs
- ToolboxItemAttribute.cs
- StrongNameUtility.cs
- ToolBarOverflowPanel.cs
- UserNameSecurityTokenAuthenticator.cs
- PageCodeDomTreeGenerator.cs
- X509CertificateValidationMode.cs
- WebDisplayNameAttribute.cs
- Timer.cs
- FontFamilyConverter.cs
- isolationinterop.cs
- NamedPipeChannelListener.cs
- FieldBuilder.cs
- DbSourceCommand.cs
- NotSupportedException.cs
- CatalogPartChrome.cs
- ClientRuntimeConfig.cs
- InfoCardBaseException.cs
- SqlDataSourceSelectingEventArgs.cs
- DataObjectAttribute.cs
- ExtractCollection.cs
- RoleManagerEventArgs.cs
- Solver.cs
- WorkflowServiceInstance.cs
- IdnMapping.cs
- OletxResourceManager.cs
- OperandQuery.cs
- TypeToStringValueConverter.cs
- PerfCounters.cs
- QueryTask.cs
- AssemblyAttributesGoHere.cs
- Rectangle.cs
- LayoutEngine.cs
- FileDialog_Vista_Interop.cs
- MediaElement.cs
- DataServiceRequestOfT.cs
- ScrollProviderWrapper.cs
- ConfigXmlText.cs
- DefaultMergeHelper.cs
- _HeaderInfoTable.cs
- PTConverter.cs
- HttpApplicationStateWrapper.cs
- QueryStatement.cs
- SimpleBitVector32.cs
- StatusBarPanel.cs
- ReadOnlyDictionary.cs
- HttpWriter.cs
- DocumentDesigner.cs
- ScrollChrome.cs
- Pointer.cs
- DataStorage.cs
- FormViewPageEventArgs.cs
- AggregatePushdown.cs
- StateElementCollection.cs
- StringResourceManager.cs
- Literal.cs
- WebPartMovingEventArgs.cs
- ComponentResourceManager.cs
- MultiTrigger.cs
- DataTemplateSelector.cs
- RemotingConfiguration.cs
- MasterPageCodeDomTreeGenerator.cs
- InputProcessorProfilesLoader.cs
- PointAnimationClockResource.cs
- PersianCalendar.cs
- PathSegmentCollection.cs
- LogLogRecordEnumerator.cs
- DbConnectionClosed.cs
- ProfileGroupSettings.cs
- DataViewSettingCollection.cs
- StateWorkerRequest.cs
- ScriptResourceHandler.cs
- TextRangeEditTables.cs
- DashStyles.cs
- CultureInfo.cs
- EntityClientCacheEntry.cs
- KeyInterop.cs
- TextEditorParagraphs.cs
- OleDbMetaDataFactory.cs
- SamlAttribute.cs
- WindowCollection.cs
- StrokeFIndices.cs
- ImageMap.cs
- PreviousTrackingServiceAttribute.cs
- RelatedImageListAttribute.cs
- CalendarItem.cs
- SystemNetHelpers.cs
- ErrorWrapper.cs
- DataListItemCollection.cs
- EtwTrace.cs
- RectAnimationClockResource.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- RecognizerStateChangedEventArgs.cs
- PieceDirectory.cs
- NetMsmqBinding.cs
- Byte.cs
- _AcceptOverlappedAsyncResult.cs
- TableDetailsCollection.cs
- EventDescriptorCollection.cs
- SqlClientWrapperSmiStreamChars.cs