Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SessionEndingCancelEventArgs.cs
- EffectiveValueEntry.cs
- Hashtable.cs
- PropertyChangedEventArgs.cs
- MethodRental.cs
- SchemaImporterExtensionElement.cs
- StdValidatorsAndConverters.cs
- WebZone.cs
- UInt16Converter.cs
- GeneralTransform3DGroup.cs
- ConnectionStringsSection.cs
- HeaderedItemsControl.cs
- WebPartDesigner.cs
- HotSpot.cs
- URLEditor.cs
- XPathSelectionIterator.cs
- ContextMenuService.cs
- ForeignKeyConstraint.cs
- SrgsDocumentParser.cs
- CurrentChangedEventManager.cs
- Predicate.cs
- WebPartRestoreVerb.cs
- InternalConfigSettingsFactory.cs
- Thickness.cs
- ThicknessAnimationBase.cs
- DynamicPropertyReader.cs
- XmlSchemaGroup.cs
- AuthenticatedStream.cs
- ListViewGroupCollectionEditor.cs
- DocumentXmlWriter.cs
- DispatchChannelSink.cs
- HttpStreams.cs
- SQLMembershipProvider.cs
- SetState.cs
- ClientProtocol.cs
- Icon.cs
- querybuilder.cs
- ListViewTableCell.cs
- Durable.cs
- XmlSerializationGeneratedCode.cs
- PropertyMappingExceptionEventArgs.cs
- FreezableOperations.cs
- MenuItemBindingCollection.cs
- OleDbFactory.cs
- ExtendedProperty.cs
- LookupNode.cs
- MemoryRecordBuffer.cs
- SolidBrush.cs
- XmlHierarchicalEnumerable.cs
- XmlAnyElementAttribute.cs
- Quaternion.cs
- WebPartMenu.cs
- TextTreePropertyUndoUnit.cs
- TagPrefixInfo.cs
- Msec.cs
- BindingListCollectionView.cs
- BitmapEffectRenderDataResource.cs
- TextBoxBase.cs
- PointCollection.cs
- UnsafeMethods.cs
- CompiledQueryCacheEntry.cs
- UnknownBitmapDecoder.cs
- BamlBinaryWriter.cs
- CommentEmitter.cs
- HandleRef.cs
- ConfigurationPermission.cs
- Compilation.cs
- DataGridTemplateColumn.cs
- xsdvalidator.cs
- ConstraintEnumerator.cs
- JsonStringDataContract.cs
- QueryPageSettingsEventArgs.cs
- FixedElement.cs
- MetadataImporter.cs
- FtpWebResponse.cs
- DbModificationCommandTree.cs
- EncryptedKeyIdentifierClause.cs
- ClientSettingsSection.cs
- XmlSchemaProviderAttribute.cs
- SqlClientFactory.cs
- _SslState.cs
- EditorPartDesigner.cs
- JsonEnumDataContract.cs
- Keyboard.cs
- DataGridViewCellFormattingEventArgs.cs
- ThreadStateException.cs
- LayoutEditorPart.cs
- CustomPopupPlacement.cs
- X509Certificate2Collection.cs
- ResourceDictionary.cs
- MulticastOption.cs
- RegexStringValidatorAttribute.cs
- CacheEntry.cs
- XmlTypeMapping.cs
- SoapElementAttribute.cs
- wmiprovider.cs
- AuthorizationRuleCollection.cs
- ButtonPopupAdapter.cs
- LingerOption.cs
- RemotingAttributes.cs