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
- ChannelManagerService.cs
- WebPartConnectionsEventArgs.cs
- ColumnReorderedEventArgs.cs
- MediaContext.cs
- SafeBitVector32.cs
- ComplexPropertyEntry.cs
- XhtmlBasicPanelAdapter.cs
- ComNativeDescriptor.cs
- SByteConverter.cs
- TextParagraph.cs
- ClientScriptItem.cs
- LinqDataSourceInsertEventArgs.cs
- SqlConnectionPoolProviderInfo.cs
- TextBox.cs
- ProviderConnectionPointCollection.cs
- PointLightBase.cs
- FormatException.cs
- ResourceReferenceExpressionConverter.cs
- RequestCachingSection.cs
- RelationshipEndMember.cs
- MarkupExtensionParser.cs
- FixedBufferAttribute.cs
- AtlasWeb.Designer.cs
- SerializationAttributes.cs
- SqlUtil.cs
- ResourceDescriptionAttribute.cs
- ClassImporter.cs
- ToolStripOverflow.cs
- CharUnicodeInfo.cs
- Solver.cs
- CompositeDataBoundControl.cs
- RadioButtonPopupAdapter.cs
- SpotLight.cs
- Int32CollectionConverter.cs
- RectangleConverter.cs
- SamlAudienceRestrictionCondition.cs
- RequestQueue.cs
- StringExpressionSet.cs
- CodeIdentifier.cs
- TableAdapterManagerHelper.cs
- ThicknessAnimation.cs
- DetailsViewDeletedEventArgs.cs
- NamedPipeProcessProtocolHandler.cs
- DiffuseMaterial.cs
- WebPartCloseVerb.cs
- SmiSettersStream.cs
- Clipboard.cs
- IdentifierCollection.cs
- Exceptions.cs
- GridViewRowCollection.cs
- MessageSmuggler.cs
- TextPointer.cs
- mediaeventargs.cs
- PaintEvent.cs
- VisualProxy.cs
- PropVariant.cs
- XPathAxisIterator.cs
- TypeDescriptor.cs
- ObjRef.cs
- base64Transforms.cs
- DesignerActionListCollection.cs
- ResXResourceWriter.cs
- InvalidWMPVersionException.cs
- RangeValueProviderWrapper.cs
- SimplePropertyEntry.cs
- CodeAccessPermission.cs
- XmlSchemaAll.cs
- PrimitiveCodeDomSerializer.cs
- ServiceDescriptionContext.cs
- EmbeddedMailObjectsCollection.cs
- Vector3DCollection.cs
- TraceHandler.cs
- MyContact.cs
- SqlNodeAnnotation.cs
- DBSchemaTable.cs
- ConnectionConsumerAttribute.cs
- CommonProperties.cs
- DataServiceHostWrapper.cs
- MissingSatelliteAssemblyException.cs
- XmlCountingReader.cs
- GridView.cs
- RTLAwareMessageBox.cs
- DataBoundControlActionList.cs
- TextDecorationCollection.cs
- Attributes.cs
- TraceLevelStore.cs
- RequiredAttributeAttribute.cs
- Rules.cs
- RowToFieldTransformer.cs
- UserUseLicenseDictionaryLoader.cs
- WsrmTraceRecord.cs
- Delegate.cs
- FixedSOMElement.cs
- TimeoutHelper.cs
- MenuItem.cs
- WebBrowserUriTypeConverter.cs
- XmlUnspecifiedAttribute.cs
- MetadataException.cs
- Itemizer.cs
- PublisherIdentityPermission.cs