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
- BuildManagerHost.cs
- ObjectConverter.cs
- ApplicationManager.cs
- Html32TextWriter.cs
- ProxyGenerator.cs
- BackoffTimeoutHelper.cs
- ProfileModule.cs
- RandomNumberGenerator.cs
- IApplicationTrustManager.cs
- ContentElement.cs
- ScalarOps.cs
- BlurEffect.cs
- SecurityResources.cs
- COM2ExtendedTypeConverter.cs
- TargetPerspective.cs
- AttachedAnnotation.cs
- MouseGesture.cs
- TrustSection.cs
- ParentQuery.cs
- AnimatedTypeHelpers.cs
- DataRecordInfo.cs
- DetailsViewUpdatedEventArgs.cs
- ListViewCancelEventArgs.cs
- Helpers.cs
- StylusPointPropertyInfo.cs
- SmiEventStream.cs
- ArithmeticException.cs
- WindowsAuthenticationEventArgs.cs
- TextCollapsingProperties.cs
- TypeName.cs
- ViewSimplifier.cs
- SchemaName.cs
- EmptyStringExpandableObjectConverter.cs
- NativeActivityAbortContext.cs
- FixedSOMElement.cs
- BulletDecorator.cs
- XmlWriter.cs
- WpfXamlLoader.cs
- AdornerHitTestResult.cs
- CellConstant.cs
- DockAndAnchorLayout.cs
- Msmq.cs
- PhoneCallDesigner.cs
- propertytag.cs
- ProviderBase.cs
- StringFunctions.cs
- CssClassPropertyAttribute.cs
- EntryIndex.cs
- ResetableIterator.cs
- OutOfMemoryException.cs
- TableLayoutColumnStyleCollection.cs
- MetadataResolver.cs
- TypeViewSchema.cs
- Solver.cs
- ObjectSet.cs
- ProviderMetadataCachedInformation.cs
- TiffBitmapDecoder.cs
- DES.cs
- LoadRetryConstantStrategy.cs
- PageThemeParser.cs
- SqlRewriteScalarSubqueries.cs
- RayHitTestParameters.cs
- EntityObject.cs
- UriTemplateTable.cs
- TextRange.cs
- HtmlAnchor.cs
- Transform3DGroup.cs
- CryptoHandle.cs
- RoleBoolean.cs
- RuleSettings.cs
- RelatedView.cs
- AutomationAttributeInfo.cs
- HostExecutionContextManager.cs
- Emitter.cs
- safex509handles.cs
- ProtocolsConfigurationEntry.cs
- StringUtil.cs
- ProcessRequestArgs.cs
- ExtensionSurface.cs
- DPCustomTypeDescriptor.cs
- QueryCreatedEventArgs.cs
- EntityConnectionStringBuilderItem.cs
- DataTableTypeConverter.cs
- _NegoStream.cs
- ClientRoleProvider.cs
- RemoteArgument.cs
- TreePrinter.cs
- Figure.cs
- LogicalExpressionEditor.cs
- XmlToDatasetMap.cs
- SqlServices.cs
- AstTree.cs
- CapabilitiesRule.cs
- ToolTip.cs
- clipboard.cs
- Attachment.cs
- CopyNamespacesAction.cs
- HtmlMobileTextWriter.cs
- DocumentationServerProtocol.cs
- CapabilitiesAssignment.cs