Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- EventLevel.cs
- SwitchLevelAttribute.cs
- ScrollProperties.cs
- SessionEndingEventArgs.cs
- ObjectCloneHelper.cs
- TagPrefixAttribute.cs
- GestureRecognizer.cs
- EmbeddedMailObjectsCollection.cs
- ReadOnlyPropertyMetadata.cs
- Point3DAnimationUsingKeyFrames.cs
- TemplatedAdorner.cs
- InsufficientMemoryException.cs
- DbConvert.cs
- bidPrivateBase.cs
- PenCursorManager.cs
- XmlCountingReader.cs
- MatrixAnimationUsingPath.cs
- HttpPostLocalhostServerProtocol.cs
- followingquery.cs
- pingexception.cs
- SslStream.cs
- ParseNumbers.cs
- CodeExpressionRuleDeclaration.cs
- ComponentManagerBroker.cs
- AncillaryOps.cs
- XmlUnspecifiedAttribute.cs
- XmlSchemaAny.cs
- sqlmetadatafactory.cs
- ColorBlend.cs
- HttpCacheParams.cs
- ColorDialog.cs
- Executor.cs
- HtmlTable.cs
- TranslateTransform.cs
- ListItem.cs
- TextServicesCompartmentContext.cs
- ComplexPropertyEntry.cs
- CodeDomDesignerLoader.cs
- X509CertificateInitiatorServiceCredential.cs
- HostedImpersonationContext.cs
- CorrelationManager.cs
- SqlConnectionString.cs
- SystemGatewayIPAddressInformation.cs
- DataContractSerializerOperationFormatter.cs
- BufferedOutputStream.cs
- CodeLabeledStatement.cs
- Cursors.cs
- Debug.cs
- WmlSelectionListAdapter.cs
- TemplateControlCodeDomTreeGenerator.cs
- DataRelation.cs
- EventItfInfo.cs
- PermissionSetTriple.cs
- TextBoxBase.cs
- ListViewAutomationPeer.cs
- Tuple.cs
- ToolStripButton.cs
- BookmarkScopeManager.cs
- RestHandler.cs
- SrgsOneOf.cs
- ReliableChannelListener.cs
- SoapConverter.cs
- ToolboxDataAttribute.cs
- ResolveResponse.cs
- TextTreeInsertElementUndoUnit.cs
- FileVersionInfo.cs
- BamlRecordWriter.cs
- WrappedIUnknown.cs
- Vector3DValueSerializer.cs
- MsmqChannelFactory.cs
- QilLoop.cs
- FormatterServices.cs
- BidOverLoads.cs
- ComponentEditorPage.cs
- SmtpException.cs
- MsmqIntegrationBinding.cs
- TypedTableBase.cs
- MessageRpc.cs
- OdbcConnectionFactory.cs
- PersianCalendar.cs
- DataFieldCollectionEditor.cs
- unsafenativemethodstextservices.cs
- FixedLineResult.cs
- RtfToXamlReader.cs
- URLAttribute.cs
- DbProviderSpecificTypePropertyAttribute.cs
- FacetDescription.cs
- CodeMemberProperty.cs
- ServicePointManagerElement.cs
- LinkUtilities.cs
- BuildProviderCollection.cs
- WebPartMinimizeVerb.cs
- PackageRelationshipCollection.cs
- CommandBindingCollection.cs
- PlaceHolder.cs
- PolicyUtility.cs
- DispatcherProcessingDisabled.cs
- PersistenceTask.cs
- UpdateException.cs
- SafeRegistryKey.cs