Code:
/ FX-1434 / FX-1434 / 1.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
- ListViewUpdateEventArgs.cs
- EncoderParameters.cs
- CancellationScope.cs
- Image.cs
- GenericsNotImplementedException.cs
- BaseCAMarshaler.cs
- PinnedBufferMemoryStream.cs
- WebRequestModuleElementCollection.cs
- Cursors.cs
- XmlSerializerFactory.cs
- TypeNameHelper.cs
- ClientUtils.cs
- ProtocolsConfigurationEntry.cs
- BaseTemplateParser.cs
- FixedSOMImage.cs
- ArcSegment.cs
- AsyncCodeActivityContext.cs
- DbConnectionInternal.cs
- TemplateBindingExtension.cs
- HtmlInputImage.cs
- ValueSerializerAttribute.cs
- RadioButton.cs
- ContainerUtilities.cs
- PageContentAsyncResult.cs
- KeyValueSerializer.cs
- IisTraceWebEventProvider.cs
- SHA256.cs
- XamlToRtfParser.cs
- IdentityNotMappedException.cs
- NumberAction.cs
- ClientEventManager.cs
- PublishLicense.cs
- Vector3D.cs
- TimeZone.cs
- RoleManagerModule.cs
- VirtualDirectoryMapping.cs
- NameScopePropertyAttribute.cs
- XmlHierarchyData.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- ObjectManager.cs
- TimelineGroup.cs
- IsolatedStorageFileStream.cs
- ColumnReorderedEventArgs.cs
- SqlUtil.cs
- StreamGeometry.cs
- SendMailErrorEventArgs.cs
- sqlnorm.cs
- TextEmbeddedObject.cs
- _TLSstream.cs
- PathSegment.cs
- UserNameSecurityTokenProvider.cs
- MarkupCompilePass1.cs
- DynamicDocumentPaginator.cs
- WebPartCollection.cs
- SqlCaseSimplifier.cs
- RegionIterator.cs
- State.cs
- ByteStreamGeometryContext.cs
- KeyEvent.cs
- StorageEndPropertyMapping.cs
- ExceptionHandlers.cs
- KeyValuePair.cs
- SafeRightsManagementSessionHandle.cs
- X509CertificateEndpointIdentity.cs
- XPathQilFactory.cs
- SystemBrushes.cs
- BamlReader.cs
- GcHandle.cs
- UntypedNullExpression.cs
- TextRangeProviderWrapper.cs
- WindowsTab.cs
- RootBuilder.cs
- TextEditor.cs
- SqlConnectionHelper.cs
- ParseChildrenAsPropertiesAttribute.cs
- BulletedList.cs
- WebPartAddingEventArgs.cs
- ExecutionEngineException.cs
- GPRECTF.cs
- ContentElementAutomationPeer.cs
- controlskin.cs
- BezierSegment.cs
- ScrollItemPattern.cs
- SqlPersonalizationProvider.cs
- SqlVersion.cs
- ModelPropertyImpl.cs
- AssemblyAttributes.cs
- WebPart.cs
- CryptoStream.cs
- SplineKeyFrames.cs
- ExpressionNormalizer.cs
- ControlValuePropertyAttribute.cs
- HttpCookieCollection.cs
- DataPagerCommandEventArgs.cs
- NotifyCollectionChangedEventArgs.cs
- ItemCheckEvent.cs
- DelimitedListTraceListener.cs
- PropertyValueUIItem.cs
- XmlDomTextWriter.cs
- GridViewCommandEventArgs.cs