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
- PrimaryKeyTypeConverter.cs
- PenThreadPool.cs
- DirectionalLight.cs
- DataExpression.cs
- Rect3D.cs
- ScriptControlDescriptor.cs
- EdmProviderManifest.cs
- InvalidEnumArgumentException.cs
- WpfWebRequestHelper.cs
- ChtmlMobileTextWriter.cs
- AtomicFile.cs
- ResourceCodeDomSerializer.cs
- FlowPosition.cs
- CommonObjectSecurity.cs
- RNGCryptoServiceProvider.cs
- ImageMetadata.cs
- PackageRelationshipCollection.cs
- DataRowView.cs
- Color.cs
- WindowsHyperlink.cs
- SqlConnectionManager.cs
- M3DUtil.cs
- PartialList.cs
- DataGridViewSortCompareEventArgs.cs
- CompilationRelaxations.cs
- DataTableMapping.cs
- localization.cs
- NativeObjectSecurity.cs
- ConfigXmlText.cs
- ProviderCollection.cs
- GridViewRowPresenterBase.cs
- Point.cs
- XmlConvert.cs
- smtppermission.cs
- ReadOnlyObservableCollection.cs
- UrlAuthFailedErrorFormatter.cs
- SqlWebEventProvider.cs
- GroupBoxRenderer.cs
- FilterElement.cs
- ValueType.cs
- EUCJPEncoding.cs
- BindingValueChangedEventArgs.cs
- DataControlLinkButton.cs
- PersonalizationProviderCollection.cs
- PeerCollaborationPermission.cs
- CallSite.cs
- PartitionedStream.cs
- XmlSchemaObjectTable.cs
- EnumUnknown.cs
- FrameworkElement.cs
- AddressHeaderCollectionElement.cs
- CaseInsensitiveComparer.cs
- _AuthenticationState.cs
- SchemaEntity.cs
- TimeSpanSecondsConverter.cs
- CaseInsensitiveComparer.cs
- ProgressBarAutomationPeer.cs
- AxParameterData.cs
- FolderBrowserDialogDesigner.cs
- PowerModeChangedEventArgs.cs
- FilteredAttributeCollection.cs
- NameValueCollection.cs
- DesignerOptionService.cs
- RijndaelManagedTransform.cs
- TransformerInfoCollection.cs
- SizeAnimationClockResource.cs
- DrawListViewItemEventArgs.cs
- GlobalEventManager.cs
- DataBindingCollectionEditor.cs
- SpeechSeg.cs
- SqlConnectionHelper.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- FixedDocumentSequencePaginator.cs
- SignedXml.cs
- UnionCqlBlock.cs
- ChangePassword.cs
- TransactionFlowOption.cs
- DropShadowBitmapEffect.cs
- SubMenuStyle.cs
- AuthenticationModuleElement.cs
- BindStream.cs
- CodeTypeReference.cs
- Point3DCollection.cs
- TableRowCollection.cs
- CriticalFinalizerObject.cs
- MailHeaderInfo.cs
- XmlQueryTypeFactory.cs
- PropertyValueChangedEvent.cs
- CommonGetThemePartSize.cs
- RequestCachePolicy.cs
- LinqDataSourceView.cs
- HostedTcpTransportManager.cs
- DataGrid.cs
- ChildDocumentBlock.cs
- DataSetViewSchema.cs
- DataListItem.cs
- ColumnTypeConverter.cs
- BitmapEffectDrawing.cs
- InputBinder.cs
- RootProfilePropertySettingsCollection.cs