Code:
/ 4.0 / 4.0 / 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. [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
- WindowsListViewSubItem.cs
- FlowDocumentScrollViewer.cs
- IPPacketInformation.cs
- EpmHelper.cs
- SqlRewriteScalarSubqueries.cs
- SoapServerMethod.cs
- ListSourceHelper.cs
- ExtentCqlBlock.cs
- Run.cs
- SecurityVersion.cs
- FormsAuthenticationConfiguration.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- SecurityManager.cs
- ControlEvent.cs
- DataGridViewHeaderCell.cs
- TreeNodeEventArgs.cs
- _ListenerRequestStream.cs
- TypeForwardedFromAttribute.cs
- CompatibleComparer.cs
- GridItemPattern.cs
- FamilyMapCollection.cs
- CommandExpr.cs
- CrossAppDomainChannel.cs
- ObjectAnimationUsingKeyFrames.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- TableLayoutCellPaintEventArgs.cs
- MultiBinding.cs
- AdjustableArrowCap.cs
- ProfileManager.cs
- FileLogRecordHeader.cs
- ReadOnlyCollectionBase.cs
- SiteMap.cs
- ComponentChangedEvent.cs
- PtsContext.cs
- TrustLevelCollection.cs
- AppDomainFactory.cs
- ExtensionQuery.cs
- ObfuscationAttribute.cs
- MethodExpr.cs
- CodeGeneratorOptions.cs
- LayoutManager.cs
- MsmqAppDomainProtocolHandler.cs
- ViewManager.cs
- CachedFontFace.cs
- RowCache.cs
- JsonCollectionDataContract.cs
- GetReadStreamResult.cs
- StringArrayConverter.cs
- _SpnDictionary.cs
- CharacterShapingProperties.cs
- XPathMultyIterator.cs
- selecteditemcollection.cs
- ClientFormsAuthenticationCredentials.cs
- SpotLight.cs
- MissingFieldException.cs
- ForwardPositionQuery.cs
- PropertyTab.cs
- FileVersion.cs
- XmlLinkedNode.cs
- log.cs
- StaticContext.cs
- CaseStatement.cs
- SHA1Managed.cs
- DataGridViewImageColumn.cs
- DefaultAssemblyResolver.cs
- LoginView.cs
- CodeDelegateCreateExpression.cs
- ConstraintConverter.cs
- IMembershipProvider.cs
- Encoder.cs
- __TransparentProxy.cs
- TaskFormBase.cs
- DataGridViewButtonCell.cs
- CommonRemoteMemoryBlock.cs
- CodeGenHelper.cs
- XamlGridLengthSerializer.cs
- WebPartConnectionsConnectVerb.cs
- XhtmlBasicValidatorAdapter.cs
- QueueProcessor.cs
- DataGridViewLayoutData.cs
- SecurityChannel.cs
- StringPropertyBuilder.cs
- XmlValidatingReader.cs
- Size.cs
- SqlConnectionPoolProviderInfo.cs
- CssTextWriter.cs
- CompilerErrorCollection.cs
- complextypematerializer.cs
- ConfigXmlDocument.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- StringFormat.cs
- Stroke.cs
- MarkupExtensionParser.cs
- Symbol.cs
- WebAdminConfigurationHelper.cs
- XmlSerializerFaultFormatter.cs
- ItemContainerProviderWrapper.cs
- CompressedStack.cs
- TextServicesLoader.cs
- HeaderedItemsControl.cs