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
- ImageSourceValueSerializer.cs
- XPathNavigatorReader.cs
- DummyDataSource.cs
- DoubleSumAggregationOperator.cs
- FastEncoder.cs
- FormatConvertedBitmap.cs
- TextureBrush.cs
- ParallelLoopState.cs
- Root.cs
- _SecureChannel.cs
- InternalBase.cs
- BooleanFunctions.cs
- TextReader.cs
- OdbcCommandBuilder.cs
- VisualTransition.cs
- HandoffBehavior.cs
- HijriCalendar.cs
- ArraySet.cs
- StylusPointPropertyInfo.cs
- _DisconnectOverlappedAsyncResult.cs
- WebControl.cs
- SqlHelper.cs
- TextBreakpoint.cs
- DesignRelationCollection.cs
- DesignerDataSourceView.cs
- SystemIPv4InterfaceProperties.cs
- BaseUriHelper.cs
- TemplatedMailWebEventProvider.cs
- DSACryptoServiceProvider.cs
- TextServicesCompartmentEventSink.cs
- ListViewDataItem.cs
- SamlAssertion.cs
- SkinBuilder.cs
- ServiceHostingEnvironment.cs
- Label.cs
- Common.cs
- ImmutablePropertyDescriptorGridEntry.cs
- ChangeTracker.cs
- DiscoveryMessageSequence11.cs
- JsonReader.cs
- FileLogRecordEnumerator.cs
- XmlBoundElement.cs
- DbProviderFactories.cs
- SimpleTableProvider.cs
- Int16Converter.cs
- UpdateRecord.cs
- HtmlTitle.cs
- PriorityRange.cs
- VectorCollectionValueSerializer.cs
- ComNativeDescriptor.cs
- HttpServerChannel.cs
- RSAOAEPKeyExchangeDeformatter.cs
- OletxResourceManager.cs
- PixelFormats.cs
- DataObject.cs
- CookieHandler.cs
- CodeValidator.cs
- OdbcException.cs
- MimeFormReflector.cs
- SqlFileStream.cs
- RegexBoyerMoore.cs
- HttpResponseHeader.cs
- RangeValidator.cs
- Opcode.cs
- AsyncOperationManager.cs
- OleDbWrapper.cs
- _AutoWebProxyScriptEngine.cs
- TagNameToTypeMapper.cs
- DocumentOrderQuery.cs
- PlanCompilerUtil.cs
- AsyncSerializedWorker.cs
- HashCodeCombiner.cs
- ServiceDescriptionReflector.cs
- OrderedDictionaryStateHelper.cs
- DataRowCollection.cs
- ModelVisual3D.cs
- UrlParameterWriter.cs
- CategoryAttribute.cs
- CryptoProvider.cs
- FileVersionInfo.cs
- LayoutSettings.cs
- RectIndependentAnimationStorage.cs
- _KerberosClient.cs
- WebBrowserPermission.cs
- SourceElementsCollection.cs
- FileDialog.cs
- ItemsControl.cs
- IisTraceWebEventProvider.cs
- CqlLexer.cs
- ListSortDescription.cs
- ActivityXamlServices.cs
- EnterpriseServicesHelper.cs
- DesignerMetadata.cs
- commandenforcer.cs
- IPipelineRuntime.cs
- SerTrace.cs
- Keywords.cs
- FileSystemInfo.cs
- ContravarianceAdapter.cs
- XmlNodeChangedEventManager.cs