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
- BulletChrome.cs
- PrinterUnitConvert.cs
- DataGrid.cs
- SecurityContextSecurityTokenResolver.cs
- XmlTextEncoder.cs
- MetadataException.cs
- Action.cs
- WebPartDisplayModeCancelEventArgs.cs
- ShapeTypeface.cs
- DragStartedEventArgs.cs
- WebException.cs
- AdPostCacheSubstitution.cs
- HtmlDocument.cs
- NetStream.cs
- CompositeCollection.cs
- SQLInt64.cs
- SqlNotificationRequest.cs
- EncoderNLS.cs
- XomlDesignerLoader.cs
- SchemaObjectWriter.cs
- StorageComplexTypeMapping.cs
- CombinedGeometry.cs
- UserPreferenceChangingEventArgs.cs
- ReadOnlyTernaryTree.cs
- DbConnectionPoolOptions.cs
- SystemNetHelpers.cs
- FontUnitConverter.cs
- HttpCapabilitiesEvaluator.cs
- DataGridViewRowsRemovedEventArgs.cs
- AnnotationAuthorChangedEventArgs.cs
- RijndaelManaged.cs
- DateTimeOffset.cs
- ServicePoint.cs
- WrappedReader.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- DataBinder.cs
- PinnedBufferMemoryStream.cs
- DefaultValueConverter.cs
- FontCacheUtil.cs
- LinqDataSourceDeleteEventArgs.cs
- ServiceHostingEnvironmentSection.cs
- Vector3DKeyFrameCollection.cs
- ParseHttpDate.cs
- OleAutBinder.cs
- FileLogRecord.cs
- RSAPKCS1KeyExchangeFormatter.cs
- FormsAuthenticationModule.cs
- Vector3D.cs
- UnsafeNativeMethods.cs
- SecurityRequiresReviewAttribute.cs
- RtfToken.cs
- XmlHierarchicalDataSourceView.cs
- TextPointerBase.cs
- SaveFileDialog.cs
- ScrollItemPatternIdentifiers.cs
- InvokeProviderWrapper.cs
- IApplicationTrustManager.cs
- Root.cs
- PrePrepareMethodAttribute.cs
- DataReceivedEventArgs.cs
- RedirectionProxy.cs
- ParameterCollection.cs
- TagMapCollection.cs
- ToolStrip.cs
- SiblingIterators.cs
- RtfControlWordInfo.cs
- ExpressionEditorAttribute.cs
- TextStore.cs
- SourceLineInfo.cs
- HttpListenerContext.cs
- HttpRequest.cs
- ParallelTimeline.cs
- RegexGroup.cs
- WebPartEditVerb.cs
- DataSetMappper.cs
- mansign.cs
- MediaTimeline.cs
- TextReader.cs
- BindingManagerDataErrorEventArgs.cs
- DebugManager.cs
- TextFormatterImp.cs
- ValuePattern.cs
- XmlSchemaRedefine.cs
- ExtentKey.cs
- DataGrid.cs
- SerializationAttributes.cs
- SystemWebCachingSectionGroup.cs
- SocketPermission.cs
- Model3DGroup.cs
- DesignRelation.cs
- SkipQueryOptionExpression.cs
- __ConsoleStream.cs
- BaseValidator.cs
- XmlSchemaAppInfo.cs
- OutputCacheModule.cs
- FunctionOverloadResolver.cs
- ReceiveSecurityHeaderElementManager.cs
- RoutedEventValueSerializer.cs
- DoubleMinMaxAggregationOperator.cs
- ClientData.cs