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
- StagingAreaInputItem.cs
- Renderer.cs
- ActivityTypeDesigner.xaml.cs
- FileNotFoundException.cs
- BaseParser.cs
- HttpSessionStateWrapper.cs
- brushes.cs
- FixedDocument.cs
- DataControlLinkButton.cs
- SizeIndependentAnimationStorage.cs
- Pick.cs
- HtmlImageAdapter.cs
- AppAction.cs
- DeclaredTypeValidator.cs
- XPathDocumentNavigator.cs
- AssemblyAttributes.cs
- QueryExtender.cs
- TouchEventArgs.cs
- ParentQuery.cs
- RenderingEventArgs.cs
- SubtreeProcessor.cs
- ReachDocumentPageSerializerAsync.cs
- WindowsTab.cs
- EraserBehavior.cs
- InstanceHandle.cs
- AutomationIdentifier.cs
- PerformanceCounterManager.cs
- BaseParser.cs
- PointLightBase.cs
- XmlSchemaSearchPattern.cs
- Activity.cs
- Rect3D.cs
- httpstaticobjectscollection.cs
- XamlLoadErrorInfo.cs
- KeyTimeConverter.cs
- NotCondition.cs
- FontConverter.cs
- DSASignatureFormatter.cs
- LinkArea.cs
- TransformerInfoCollection.cs
- SystemWebExtensionsSectionGroup.cs
- DBParameter.cs
- TextLineBreak.cs
- NativeMsmqMessage.cs
- MatrixAnimationBase.cs
- Module.cs
- PkcsUtils.cs
- BitmapCodecInfo.cs
- XmlSchemaResource.cs
- HitTestResult.cs
- Binding.cs
- AssemblyCache.cs
- DescendantBaseQuery.cs
- ChannelManagerBase.cs
- QueryException.cs
- View.cs
- DataBoundControlAdapter.cs
- FixedPosition.cs
- NativeMethodsCLR.cs
- ArrayTypeMismatchException.cs
- FlowNode.cs
- printdlgexmarshaler.cs
- UnsafeNativeMethodsTablet.cs
- ValidationService.cs
- base64Transforms.cs
- UnsafeNativeMethods.cs
- OuterGlowBitmapEffect.cs
- CompositeDataBoundControl.cs
- HyperLink.cs
- ConditionalAttribute.cs
- RemotingConfigParser.cs
- CommandID.cs
- Choices.cs
- AdPostCacheSubstitution.cs
- CodeEntryPointMethod.cs
- SymbolDocumentGenerator.cs
- SkinBuilder.cs
- HyperlinkAutomationPeer.cs
- XmlAnyElementAttribute.cs
- XmlDownloadManager.cs
- AutomationAttributeInfo.cs
- CompensationTokenData.cs
- SelectionItemProviderWrapper.cs
- MainMenu.cs
- WaitHandleCannotBeOpenedException.cs
- PathGeometry.cs
- Stack.cs
- TableLayoutRowStyleCollection.cs
- MsmqVerifier.cs
- TcpChannelListener.cs
- SByteStorage.cs
- IntSecurity.cs
- DocumentViewerBaseAutomationPeer.cs
- IOThreadScheduler.cs
- ByteViewer.cs
- XmlObjectSerializerReadContext.cs
- ExternalCalls.cs
- SRGSCompiler.cs
- RootDesignerSerializerAttribute.cs
- FileStream.cs