Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartConnectionsConnectVerb.cs
- RelationshipFixer.cs
- InheritablePropertyChangeInfo.cs
- DocumentStatusResources.cs
- XmlSchemaAttributeGroup.cs
- ObjectDataSourceView.cs
- XhtmlCssHandler.cs
- PathBox.cs
- FillBehavior.cs
- TreeViewAutomationPeer.cs
- PathGeometry.cs
- FrameworkObject.cs
- IPEndPoint.cs
- ReverseInheritProperty.cs
- TimeSpan.cs
- AdRotator.cs
- HorizontalAlignConverter.cs
- FacetChecker.cs
- SiteMembershipCondition.cs
- DesignerTransaction.cs
- TabItemAutomationPeer.cs
- ConnectionManagementElement.cs
- MenuCommands.cs
- Calendar.cs
- XPathSingletonIterator.cs
- WebPartCatalogCloseVerb.cs
- CodeAttachEventStatement.cs
- ToolStripPanelRow.cs
- SelectorItemAutomationPeer.cs
- HtmlEmptyTagControlBuilder.cs
- EntityDataSourceSelectingEventArgs.cs
- ScriptManagerProxy.cs
- hwndwrapper.cs
- InputChannel.cs
- KeyToListMap.cs
- FixedSOMElement.cs
- EventLogEntry.cs
- SecurityKeyType.cs
- OleDbFactory.cs
- AspNetSynchronizationContext.cs
- Operand.cs
- CompositeKey.cs
- XPathParser.cs
- IssuanceLicense.cs
- LineServices.cs
- FtpRequestCacheValidator.cs
- StringArrayConverter.cs
- RuntimeResourceSet.cs
- PerformanceCounter.cs
- DataFormats.cs
- WeakRefEnumerator.cs
- COAUTHINFO.cs
- IEnumerable.cs
- ErrorFormatterPage.cs
- CompilationUnit.cs
- EntityDataSourceConfigureObjectContext.cs
- ObfuscationAttribute.cs
- TextServicesProperty.cs
- TextSpanModifier.cs
- BinaryObjectReader.cs
- WindowsPrincipal.cs
- WebPartZoneCollection.cs
- XsltInput.cs
- QueryOptionExpression.cs
- diagnosticsswitches.cs
- HtmlSelect.cs
- JsonEnumDataContract.cs
- SqlBuilder.cs
- OleDbCommandBuilder.cs
- XamlDebuggerXmlReader.cs
- RequestBringIntoViewEventArgs.cs
- SingleTagSectionHandler.cs
- AuthenticationModulesSection.cs
- DrawingContext.cs
- Token.cs
- DbSourceCommand.cs
- StaticContext.cs
- RootProfilePropertySettingsCollection.cs
- SoundPlayerAction.cs
- RefreshInfo.cs
- RadialGradientBrush.cs
- AnchoredBlock.cs
- PropVariant.cs
- IssuedTokenParametersElement.cs
- AxisAngleRotation3D.cs
- FocusManager.cs
- SqlInfoMessageEvent.cs
- ContentFileHelper.cs
- RemotingSurrogateSelector.cs
- InstancePersistenceEvent.cs
- ExtenderControl.cs
- WorkflowRuntimeServiceElementCollection.cs
- tooltip.cs
- AspNetSynchronizationContext.cs
- DefaultDialogButtons.cs
- TableSectionStyle.cs
- AmbientValueAttribute.cs
- XamlBrushSerializer.cs
- CollectionView.cs
- FormViewPageEventArgs.cs