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
- SelectedCellsChangedEventArgs.cs
- IgnoreSection.cs
- SqlConnectionPoolProviderInfo.cs
- UndoUnit.cs
- MessageHeaderAttribute.cs
- EncryptedKey.cs
- BlobPersonalizationState.cs
- BamlBinaryWriter.cs
- ColorConvertedBitmap.cs
- EntityCommandDefinition.cs
- OracleRowUpdatingEventArgs.cs
- ResourcePool.cs
- MembershipValidatePasswordEventArgs.cs
- BaseAddressElement.cs
- DataSourceXmlAttributeAttribute.cs
- DataSourceSerializationException.cs
- ModelTreeEnumerator.cs
- DataGridViewCellParsingEventArgs.cs
- RegularExpressionValidator.cs
- WebContext.cs
- EdmPropertyAttribute.cs
- BindingEntityInfo.cs
- ActiveDocumentEvent.cs
- KeyedHashAlgorithm.cs
- InterleavedZipPartStream.cs
- UnaryExpression.cs
- SrgsSemanticInterpretationTag.cs
- RoutingSection.cs
- PipelineModuleStepContainer.cs
- FlowDocumentScrollViewer.cs
- BamlBinaryReader.cs
- ByteAnimationUsingKeyFrames.cs
- Color.cs
- DtcInterfaces.cs
- ScaleTransform.cs
- SymbolTable.cs
- WhitespaceReader.cs
- CommunicationObjectManager.cs
- IncomingWebRequestContext.cs
- XsltCompileContext.cs
- TransformPatternIdentifiers.cs
- RawKeyboardInputReport.cs
- DataFormats.cs
- HttpProtocolImporter.cs
- ThousandthOfEmRealDoubles.cs
- ToolstripProfessionalRenderer.cs
- ObjectDisposedException.cs
- Font.cs
- CounterSample.cs
- XmlUnspecifiedAttribute.cs
- SectionInformation.cs
- MultiByteCodec.cs
- ListBoxItem.cs
- PopupEventArgs.cs
- TextElementEnumerator.cs
- MediaContext.cs
- RootBrowserWindow.cs
- MultiView.cs
- HttpBrowserCapabilitiesWrapper.cs
- SafeLibraryHandle.cs
- EntityParameterCollection.cs
- SkinIDTypeConverter.cs
- EdmToObjectNamespaceMap.cs
- BatchParser.cs
- TableLayoutPanelCellPosition.cs
- ValuePatternIdentifiers.cs
- PeerEndPoint.cs
- String.cs
- TimelineClockCollection.cs
- StylusPointProperties.cs
- ItemsControl.cs
- MouseDevice.cs
- FrameDimension.cs
- RangeContentEnumerator.cs
- StringWriter.cs
- XmlImplementation.cs
- SafeRegistryHandle.cs
- AccessKeyManager.cs
- ResourcePermissionBaseEntry.cs
- DataTable.cs
- StreamReader.cs
- EntityProviderServices.cs
- AddInProcess.cs
- HashSetEqualityComparer.cs
- HitTestResult.cs
- WSTrust.cs
- ExecutedRoutedEventArgs.cs
- QueryContinueDragEvent.cs
- ResourceDictionary.cs
- DictationGrammar.cs
- TempFiles.cs
- PersonalizationStateQuery.cs
- DetailsViewDeletedEventArgs.cs
- ConfigurationErrorsException.cs
- Intellisense.cs
- TextContainer.cs
- ScriptComponentDescriptor.cs
- _Events.cs
- Trace.cs
- Debugger.cs