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
- _SSPIWrapper.cs
- DisableDpiAwarenessAttribute.cs
- ForEachAction.cs
- BinaryConverter.cs
- DbConnectionPoolOptions.cs
- MemberRelationshipService.cs
- IndexedString.cs
- DataObjectMethodAttribute.cs
- ServiceManager.cs
- ACE.cs
- DynamicControl.cs
- CollectionCodeDomSerializer.cs
- OleDbConnectionFactory.cs
- Vector.cs
- RandomDelaySendsAsyncResult.cs
- basemetadatamappingvisitor.cs
- GradientStop.cs
- AssemblyInfo.cs
- DataListCommandEventArgs.cs
- PageContentAsyncResult.cs
- Debugger.cs
- DemultiplexingDispatchMessageFormatter.cs
- Vector3D.cs
- EventLogPermissionAttribute.cs
- ManualResetEvent.cs
- TextParagraphProperties.cs
- JpegBitmapDecoder.cs
- VectorAnimationUsingKeyFrames.cs
- DataGridPageChangedEventArgs.cs
- ProcessExitedException.cs
- ColorDialog.cs
- VirtualPathProvider.cs
- OdbcConnectionHandle.cs
- DataGrid.cs
- ImageListStreamer.cs
- AttributeData.cs
- MetadataArtifactLoaderResource.cs
- Span.cs
- ReadOnlyNameValueCollection.cs
- ProjectionCamera.cs
- DesignerSerializationOptionsAttribute.cs
- ApplicationServiceManager.cs
- HostingEnvironmentWrapper.cs
- App.cs
- ControlAdapter.cs
- MenuStrip.cs
- WebPartHelpVerb.cs
- HttpListenerRequest.cs
- DataGridCaption.cs
- DataGridViewHeaderCell.cs
- Int32Rect.cs
- LoadItemsEventArgs.cs
- Point4DConverter.cs
- CodeGenerator.cs
- XmlEventCache.cs
- _AcceptOverlappedAsyncResult.cs
- BaseDataListPage.cs
- TaskHelper.cs
- MatrixTransform.cs
- TreeView.cs
- SecurityTokenTypes.cs
- LinearKeyFrames.cs
- FormViewRow.cs
- ValidationResults.cs
- Stream.cs
- DefinitionUpdate.cs
- DesigntimeLicenseContext.cs
- OleServicesContext.cs
- XamlToRtfParser.cs
- DeclarativeCatalogPart.cs
- BitmapCache.cs
- BamlLocalizableResource.cs
- ImageProxy.cs
- SyndicationDeserializer.cs
- CodeFieldReferenceExpression.cs
- RealizedColumnsBlock.cs
- NameNode.cs
- ControlValuePropertyAttribute.cs
- TransformGroup.cs
- ScrollEvent.cs
- Rotation3D.cs
- ParseChildrenAsPropertiesAttribute.cs
- KeyGestureConverter.cs
- InnerItemCollectionView.cs
- JpegBitmapDecoder.cs
- InternalDuplexChannelListener.cs
- Enum.cs
- ButtonAutomationPeer.cs
- DataGridViewRowPrePaintEventArgs.cs
- Page.cs
- DrawListViewItemEventArgs.cs
- HGlobalSafeHandle.cs
- SqlTypeConverter.cs
- SoapInteropTypes.cs
- Misc.cs
- Convert.cs
- ZoneMembershipCondition.cs
- basecomparevalidator.cs
- SchemaManager.cs
- ShimAsPublicXamlType.cs