Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- XmlBinaryReaderSession.cs
- ControlTemplate.cs
- GeneratedView.cs
- Journaling.cs
- CodeDelegateInvokeExpression.cs
- SocketElement.cs
- ObjectListField.cs
- PenLineJoinValidation.cs
- FilePrompt.cs
- WebReferenceCollection.cs
- FunctionDetailsReader.cs
- ConfigurationStrings.cs
- UrlPath.cs
- ImageAttributes.cs
- RequestTimeoutManager.cs
- DiscoveryMessageProperty.cs
- SafeIUnknown.cs
- BufferBuilder.cs
- WebPartConnectionsEventArgs.cs
- RequestBringIntoViewEventArgs.cs
- HashHelper.cs
- StructuralCache.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- RegexReplacement.cs
- TreePrinter.cs
- XmlParserContext.cs
- XslCompiledTransform.cs
- UndirectedGraph.cs
- HostProtectionException.cs
- webeventbuffer.cs
- DataControlExtensions.cs
- AbstractExpressions.cs
- TextLine.cs
- CodeSnippetStatement.cs
- PagedDataSource.cs
- MulticastIPAddressInformationCollection.cs
- Assert.cs
- CollectionView.cs
- HMACRIPEMD160.cs
- PropertiesTab.cs
- ISAPIRuntime.cs
- pingexception.cs
- ListViewCancelEventArgs.cs
- ComboBoxRenderer.cs
- BaseAsyncResult.cs
- ReadOnlyPropertyMetadata.cs
- PointKeyFrameCollection.cs
- BasicViewGenerator.cs
- ToolStripSeparatorRenderEventArgs.cs
- BreadCrumbTextConverter.cs
- Label.cs
- DataServiceRequestException.cs
- WebPartEventArgs.cs
- Tuple.cs
- TableAdapterManagerGenerator.cs
- AppSettingsExpressionBuilder.cs
- LassoSelectionBehavior.cs
- ActiveXHelper.cs
- DbParameterCollectionHelper.cs
- mansign.cs
- WindowsRegion.cs
- WinOEToolBoxItem.cs
- EntityTransaction.cs
- InstanceDataCollection.cs
- WebPartDisplayModeCancelEventArgs.cs
- XmlSerializationWriter.cs
- StrokeRenderer.cs
- UnsafeNativeMethods.cs
- ExeConfigurationFileMap.cs
- DataControlFieldHeaderCell.cs
- SharedPersonalizationStateInfo.cs
- DateTimePicker.cs
- SqlReorderer.cs
- XmlSchemaDocumentation.cs
- DataSourceControlBuilder.cs
- XmlLinkedNode.cs
- Attributes.cs
- UriTemplateHelpers.cs
- ObjectConverter.cs
- MailAddress.cs
- ListDictionary.cs
- XmlJsonReader.cs
- XmlLanguage.cs
- VectorAnimationUsingKeyFrames.cs
- DesignerDataTable.cs
- AuthorizationContext.cs
- BoolExpressionVisitors.cs
- Matrix.cs
- TimeIntervalCollection.cs
- RSACryptoServiceProvider.cs
- StretchValidation.cs
- RestClientProxyHandler.cs
- ProcessProtocolHandler.cs
- XmlDictionaryReaderQuotas.cs
- DetailsViewRowCollection.cs
- CompositeKey.cs
- GridView.cs
- Number.cs
- SystemGatewayIPAddressInformation.cs
- PersonalizablePropertyEntry.cs