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
- CodeTypeConstructor.cs
- EdmToObjectNamespaceMap.cs
- PasswordTextContainer.cs
- BitmapFrame.cs
- TraceEventCache.cs
- IdentityHolder.cs
- XsltOutput.cs
- TimeSpanFormat.cs
- WorkflowViewManager.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- TableRow.cs
- MetafileHeaderWmf.cs
- DeflateEmulationStream.cs
- ObjRef.cs
- EntityObject.cs
- ResourceManager.cs
- FlowLayoutSettings.cs
- InvalidOperationException.cs
- PerspectiveCamera.cs
- SymLanguageType.cs
- TraceUtility.cs
- XmlMapping.cs
- TextRangeEditLists.cs
- FocusManager.cs
- Attributes.cs
- XmlEntityReference.cs
- ConnectionProviderAttribute.cs
- TextTreeInsertUndoUnit.cs
- NullableDecimalMinMaxAggregationOperator.cs
- SafeProcessHandle.cs
- PeerResolver.cs
- BasePropertyDescriptor.cs
- Buffer.cs
- WebPart.cs
- TagMapCollection.cs
- ISFClipboardData.cs
- SetState.cs
- StylusPointDescription.cs
- WebPartCancelEventArgs.cs
- MarshalByValueComponent.cs
- BatchParser.cs
- connectionpool.cs
- ClientSettingsSection.cs
- XamlSerializerUtil.cs
- WebPartDisplayModeCancelEventArgs.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- InstanceDescriptor.cs
- OpenTypeLayout.cs
- Variable.cs
- ResourceProperty.cs
- EdmType.cs
- WebBodyFormatMessageProperty.cs
- AsmxEndpointPickerExtension.cs
- DocumentPageViewAutomationPeer.cs
- SqlCacheDependency.cs
- IArgumentProvider.cs
- CompletionBookmark.cs
- _SslState.cs
- CancellationScope.cs
- ControlParameter.cs
- SR.cs
- ColorTranslator.cs
- _ListenerRequestStream.cs
- DataBoundControlHelper.cs
- UInt32Converter.cs
- MultitargetUtil.cs
- ProcessHost.cs
- LayoutTableCell.cs
- UrlMappingCollection.cs
- SoundPlayer.cs
- HtmlContainerControl.cs
- LineUtil.cs
- DefaultParameterValueAttribute.cs
- InternalConfigSettingsFactory.cs
- CodeConstructor.cs
- CodeConditionStatement.cs
- DataGridTextBox.cs
- ActivatableWorkflowsQueryResult.cs
- TransformerInfoCollection.cs
- Script.cs
- ResourceFallbackManager.cs
- handlecollector.cs
- Currency.cs
- TreeNodeCollection.cs
- RNGCryptoServiceProvider.cs
- MsmqIntegrationInputMessage.cs
- Point4DConverter.cs
- InvokePattern.cs
- MsmqReceiveParameters.cs
- ExecutionContext.cs
- DbConnectionStringCommon.cs
- ClientApiGenerator.cs
- SHA512Managed.cs
- PlanCompiler.cs
- UIElement3DAutomationPeer.cs
- Button.cs
- CatalogPartChrome.cs
- ExpressionWriter.cs
- EnvelopedPkcs7.cs
- XmlNavigatorStack.cs