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
- SoapHeader.cs
- NavigationProperty.cs
- XmlReturnWriter.cs
- UntrustedRecipientException.cs
- DbDataSourceEnumerator.cs
- DetailsViewPageEventArgs.cs
- InvalidDataContractException.cs
- Dump.cs
- ActivityScheduledQuery.cs
- Int64AnimationBase.cs
- DesignerVerbCollection.cs
- SynchronizationLockException.cs
- InvokePattern.cs
- CheckBoxList.cs
- PageAdapter.cs
- StickyNote.cs
- RuleSettings.cs
- SkewTransform.cs
- DataGridColumnReorderingEventArgs.cs
- WindowsToolbar.cs
- XmlQueryStaticData.cs
- IpcChannelHelper.cs
- Geometry3D.cs
- CompensationDesigner.cs
- VectorCollection.cs
- DataGridTemplateColumn.cs
- HandlerMappingMemo.cs
- DataShape.cs
- CollectionsUtil.cs
- StateMachineHelpers.cs
- ParameterCollection.cs
- ContractValidationHelper.cs
- XmlDocumentFragment.cs
- BasicHttpSecurityMode.cs
- PersonalizablePropertyEntry.cs
- ObjectDataSourceView.cs
- GridViewColumnCollectionChangedEventArgs.cs
- SymbolType.cs
- OdbcDataReader.cs
- EdmItemCollection.cs
- PersonalizationDictionary.cs
- WeakHashtable.cs
- AnimatedTypeHelpers.cs
- TransformerTypeCollection.cs
- fixedPageContentExtractor.cs
- Rect3D.cs
- EncoderFallback.cs
- TimeoutValidationAttribute.cs
- linebase.cs
- DbConnectionPoolOptions.cs
- Calendar.cs
- ZipFileInfoCollection.cs
- CultureTable.cs
- HyperLinkStyle.cs
- PassportAuthentication.cs
- Interop.cs
- RowTypeElement.cs
- CodeAttributeArgumentCollection.cs
- PackageProperties.cs
- Repeater.cs
- X509AudioLogo.cs
- LoginCancelEventArgs.cs
- WindowsButton.cs
- XmlReflectionMember.cs
- MultiTrigger.cs
- CustomErrorsSection.cs
- XhtmlTextWriter.cs
- ModuleConfigurationInfo.cs
- ObjectDataSourceMethodEventArgs.cs
- XmlWrappingReader.cs
- AuthenticationService.cs
- Dictionary.cs
- CultureInfoConverter.cs
- MessageDecoder.cs
- ApplicationHost.cs
- DbFunctionCommandTree.cs
- TreeViewEvent.cs
- MimeObjectFactory.cs
- StretchValidation.cs
- RepeaterItemEventArgs.cs
- ProfessionalColors.cs
- autovalidator.cs
- IItemProperties.cs
- MemoryPressure.cs
- ConfigXmlSignificantWhitespace.cs
- ProvidersHelper.cs
- Size.cs
- SelectionListComponentEditor.cs
- DXD.cs
- URLMembershipCondition.cs
- SqlCharStream.cs
- BufferBuilder.cs
- IERequestCache.cs
- CSharpCodeProvider.cs
- WebPartActionVerb.cs
- EditBehavior.cs
- DataGridViewSortCompareEventArgs.cs
- TypographyProperties.cs
- Floater.cs
- GridItemPattern.cs