Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / WinForms / Managed / System / WinForms / WindowsFormsSectionHandler.cs / 1305376 / 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
- BypassElementCollection.cs
- ISFClipboardData.cs
- LineGeometry.cs
- LoginView.cs
- WebBrowserEvent.cs
- VirtualPathUtility.cs
- HtmlSelect.cs
- AnnotationStore.cs
- GroupBox.cs
- WebPartConnectionsCancelVerb.cs
- NonBatchDirectoryCompiler.cs
- DataList.cs
- XmlSchemaObjectCollection.cs
- MsmqVerifier.cs
- ObjectDataSourceEventArgs.cs
- NamedPermissionSet.cs
- BaseDataListDesigner.cs
- EventManager.cs
- ScriptingSectionGroup.cs
- KeyValueInternalCollection.cs
- SymLanguageType.cs
- SpellCheck.cs
- PtsContext.cs
- WindowsScrollBarBits.cs
- GenericRootAutomationPeer.cs
- _ProxyRegBlob.cs
- FactoryId.cs
- HttpCookiesSection.cs
- WindowsListViewGroup.cs
- XmlIlVisitor.cs
- Types.cs
- HttpUnhandledOperationInvoker.cs
- ReadOnlyDictionary.cs
- WindowsToolbar.cs
- XmlByteStreamWriter.cs
- MessagingDescriptionAttribute.cs
- SchemaNamespaceManager.cs
- InputProcessorProfilesLoader.cs
- ConstructorExpr.cs
- _SslSessionsCache.cs
- RegexTree.cs
- CommunicationObjectManager.cs
- WebConvert.cs
- Msec.cs
- StaticExtension.cs
- TypeToken.cs
- AppSecurityManager.cs
- QueryContinueDragEventArgs.cs
- BitmapScalingModeValidation.cs
- XmlUnspecifiedAttribute.cs
- RelatedPropertyManager.cs
- DeferrableContent.cs
- Matrix3DStack.cs
- LowerCaseStringConverter.cs
- ManagedWndProcTracker.cs
- UnsafeMethods.cs
- OletxEnlistment.cs
- AsyncStreamReader.cs
- BulletedListEventArgs.cs
- WebPartHelpVerb.cs
- ValidatorCompatibilityHelper.cs
- EntityProviderFactory.cs
- smtpconnection.cs
- IntSecurity.cs
- TimeSpanValidatorAttribute.cs
- XPathScanner.cs
- OracleParameterBinding.cs
- TimeSpanParse.cs
- MaskInputRejectedEventArgs.cs
- PrintPageEvent.cs
- DefaultSerializationProviderAttribute.cs
- SimpleWorkerRequest.cs
- Vector3dCollection.cs
- FrameworkElementFactoryMarkupObject.cs
- TypeDescriptorFilterService.cs
- HttpProfileBase.cs
- ToolStripPanelCell.cs
- IconHelper.cs
- ObjectIDGenerator.cs
- DirectoryLocalQuery.cs
- ScrollableControl.cs
- _BaseOverlappedAsyncResult.cs
- StrokeCollection2.cs
- DiagnosticsConfigurationHandler.cs
- UnsafeNativeMethods.cs
- VerificationException.cs
- FormViewCommandEventArgs.cs
- ToolStripSplitButton.cs
- Relationship.cs
- ContainerUIElement3D.cs
- GridViewRowEventArgs.cs
- EntityDataSourceStatementEditor.cs
- TcpConnectionPool.cs
- EntityProviderFactory.cs
- DefaultIfEmptyQueryOperator.cs
- HttpListenerPrefixCollection.cs
- Stroke.cs
- CachedFontFace.cs
- ConfigXmlSignificantWhitespace.cs
- TextEditorDragDrop.cs