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
- WindowsTokenRoleProvider.cs
- TypeUtil.cs
- Floater.cs
- CoreSwitches.cs
- OrderablePartitioner.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- ServiceHttpModule.cs
- QueryNode.cs
- XmlName.cs
- DetailsViewModeEventArgs.cs
- DynamicMethod.cs
- DynamicActivityXamlReader.cs
- ParagraphResult.cs
- ProfessionalColorTable.cs
- TypeBuilder.cs
- DocumentPageTextView.cs
- Int32Collection.cs
- CompilationSection.cs
- LinqDataSourceUpdateEventArgs.cs
- LiteralControl.cs
- Model3DGroup.cs
- TextureBrush.cs
- Fault.cs
- XmlAggregates.cs
- Native.cs
- XmlEncodedRawTextWriter.cs
- XmlQualifiedNameTest.cs
- PrivilegeNotHeldException.cs
- IDataContractSurrogate.cs
- QilInvoke.cs
- InvalidDocumentContentsException.cs
- ZipQueryOperator.cs
- SqlDataSource.cs
- CallSiteBinder.cs
- SiteMapNodeItemEventArgs.cs
- EditableRegion.cs
- DelayedRegex.cs
- GeometryDrawing.cs
- OleDbTransaction.cs
- Compensate.cs
- NavigationWindow.cs
- FieldTemplateFactory.cs
- CqlGenerator.cs
- Thumb.cs
- BooleanAnimationUsingKeyFrames.cs
- GC.cs
- LinkTarget.cs
- DataControlButton.cs
- DirectoryObjectSecurity.cs
- LocalizedNameDescriptionPair.cs
- Point3DKeyFrameCollection.cs
- DataGridViewRowStateChangedEventArgs.cs
- Error.cs
- PointKeyFrameCollection.cs
- HttpInputStream.cs
- UrlAuthFailedErrorFormatter.cs
- Int16KeyFrameCollection.cs
- MetadataCollection.cs
- SoapAttributeAttribute.cs
- ConvertEvent.cs
- baseshape.cs
- TextRangeProviderWrapper.cs
- DataGridViewSelectedCellCollection.cs
- LoginName.cs
- DBCSCodePageEncoding.cs
- Peer.cs
- KeyedCollection.cs
- MobileFormsAuthentication.cs
- RouteValueExpressionBuilder.cs
- securestring.cs
- MatrixUtil.cs
- GifBitmapEncoder.cs
- DataControlFieldHeaderCell.cs
- WebBrowserNavigatingEventHandler.cs
- TableHeaderCell.cs
- TypefaceCollection.cs
- ByteStack.cs
- CustomErrorCollection.cs
- EventLogReader.cs
- Cloud.cs
- __TransparentProxy.cs
- ObjectAnimationBase.cs
- DocumentApplication.cs
- HttpApplication.cs
- TypeConverter.cs
- CommandField.cs
- ReadOnlyHierarchicalDataSource.cs
- ConnectionManagementElementCollection.cs
- RegionIterator.cs
- HttpCachePolicyElement.cs
- StorageComplexPropertyMapping.cs
- CharacterBufferReference.cs
- RecipientInfo.cs
- XmlDocumentFieldSchema.cs
- ToolStripPanelCell.cs
- HttpAsyncResult.cs
- SqlPersonalizationProvider.cs
- OptimisticConcurrencyException.cs
- FileUpload.cs
- TreeNodeConverter.cs