Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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. [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
- EnvironmentPermission.cs
- PointValueSerializer.cs
- ColorDialog.cs
- VisualStates.cs
- ToRequest.cs
- RefreshEventArgs.cs
- ToolboxItemAttribute.cs
- WebServiceBindingAttribute.cs
- RuleConditionDialog.cs
- CodeTypeParameterCollection.cs
- XmlSchemaInferenceException.cs
- HwndProxyElementProvider.cs
- QuaternionRotation3D.cs
- XamlSerializerUtil.cs
- ReadOnlyCollectionBuilder.cs
- DoubleAnimationClockResource.cs
- QilFunction.cs
- Annotation.cs
- ImageMetadata.cs
- QuaternionKeyFrameCollection.cs
- Binding.cs
- TypeDescriptorContext.cs
- DataPagerFieldCollection.cs
- Missing.cs
- WindowsAuthenticationModule.cs
- RuntimeResourceSet.cs
- WebPartVerb.cs
- RankException.cs
- SamlSerializer.cs
- StrokeIntersection.cs
- GridViewRow.cs
- LayoutDump.cs
- MatrixAnimationUsingKeyFrames.cs
- JsonFormatGeneratorStatics.cs
- AssemblyHelper.cs
- EntityModelBuildProvider.cs
- WindowsButton.cs
- SqlConnectionFactory.cs
- AlphaSortedEnumConverter.cs
- OdbcInfoMessageEvent.cs
- JsonFormatGeneratorStatics.cs
- WebSysDisplayNameAttribute.cs
- BitmapSizeOptions.cs
- Glyph.cs
- AllMembershipCondition.cs
- ComponentDispatcherThread.cs
- LabelLiteral.cs
- ErrorRuntimeConfig.cs
- AppSettingsReader.cs
- _NetworkingPerfCounters.cs
- RegexRunnerFactory.cs
- MemberNameValidator.cs
- AttributeCollection.cs
- XpsS0ValidatingLoader.cs
- DecoderBestFitFallback.cs
- ListViewTableRow.cs
- RsaSecurityKey.cs
- TableRowCollection.cs
- StringResourceManager.cs
- SortDescriptionCollection.cs
- XmlMemberMapping.cs
- CFStream.cs
- AssemblyGen.cs
- ContentPathSegment.cs
- DetailsViewDesigner.cs
- InsufficientMemoryException.cs
- ListViewItemSelectionChangedEvent.cs
- SoapEnumAttribute.cs
- DataGridRowDetailsEventArgs.cs
- DataGridViewIntLinkedList.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- MergeFailedEvent.cs
- PersonalizationStateQuery.cs
- CreateInstanceBinder.cs
- FormsAuthenticationUserCollection.cs
- Highlights.cs
- RegistrationServices.cs
- SqlExpressionNullability.cs
- LabelLiteral.cs
- BamlMapTable.cs
- Interlocked.cs
- DbXmlEnabledProviderManifest.cs
- ListViewHitTestInfo.cs
- ScriptComponentDescriptor.cs
- NumberEdit.cs
- SmtpNegotiateAuthenticationModule.cs
- WebPartDisplayMode.cs
- SqlUnionizer.cs
- NonClientArea.cs
- UnhandledExceptionEventArgs.cs
- util.cs
- AssertUtility.cs
- VerticalConnector.xaml.cs
- ComponentSerializationService.cs
- TimeoutTimer.cs
- SessionStateUtil.cs
- ConfigurationSettings.cs
- MessageSecurityTokenVersion.cs
- DataGridDetailsPresenter.cs
- LocalIdCollection.cs