Code:
/ DotNET / DotNET / 8.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
- ResourcePropertyMemberCodeDomSerializer.cs
- ExclusiveNamedPipeTransportManager.cs
- ChtmlImageAdapter.cs
- Identity.cs
- SqlConnectionString.cs
- LineServicesCallbacks.cs
- ValidationRule.cs
- TextHintingModeValidation.cs
- BindingList.cs
- RelatedView.cs
- StringBuilder.cs
- DiscoveryDocumentSerializer.cs
- SafeRightsManagementPubHandle.cs
- _UriTypeConverter.cs
- SemaphoreSecurity.cs
- MenuItemCollectionEditorDialog.cs
- LinearGradientBrush.cs
- HandlerBase.cs
- EncryptedPackage.cs
- MediaContextNotificationWindow.cs
- RowUpdatedEventArgs.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- DesignTimeTemplateParser.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- HtmlWindowCollection.cs
- PkcsUtils.cs
- WebSysDescriptionAttribute.cs
- Guid.cs
- ValidationErrorCollection.cs
- XmlException.cs
- ChannelServices.cs
- PipeStream.cs
- ProfileParameter.cs
- NumericPagerField.cs
- ValidatorCompatibilityHelper.cs
- StreamResourceInfo.cs
- ScrollItemPattern.cs
- BrushConverter.cs
- MemberExpressionHelper.cs
- ResetableIterator.cs
- HttpStreams.cs
- FixedSOMElement.cs
- ChangeInterceptorAttribute.cs
- PageEventArgs.cs
- TagElement.cs
- AssemblyHash.cs
- SmiEventSink_Default.cs
- RemoteDebugger.cs
- Clipboard.cs
- ParentControlDesigner.cs
- IndicFontClient.cs
- FixedNode.cs
- StreamMarshaler.cs
- KnownTypesProvider.cs
- TranslateTransform.cs
- XPathSelectionIterator.cs
- Model3D.cs
- ProjectionCamera.cs
- UrlPath.cs
- Pen.cs
- TypeEnumerableViewSchema.cs
- EventMappingSettings.cs
- ComPlusInstanceProvider.cs
- ConfigXmlSignificantWhitespace.cs
- GorillaCodec.cs
- MimeMapping.cs
- AxisAngleRotation3D.cs
- SignedXmlDebugLog.cs
- OrderPreservingSpoolingTask.cs
- SelectionGlyph.cs
- DbReferenceCollection.cs
- HttpStreamMessageEncoderFactory.cs
- BinaryUtilClasses.cs
- DebugInfo.cs
- DataGridViewCellCancelEventArgs.cs
- ToolboxItemImageConverter.cs
- HebrewNumber.cs
- HttpHeaderCollection.cs
- _Win32.cs
- GenerateTemporaryAssemblyTask.cs
- Guid.cs
- MetadataPropertyAttribute.cs
- Inflater.cs
- CodeValidator.cs
- DynamicRouteExpression.cs
- XPathPatternBuilder.cs
- FormViewUpdatedEventArgs.cs
- Attributes.cs
- StyleReferenceConverter.cs
- DataPagerFieldItem.cs
- InternalPermissions.cs
- ObjectQuery_EntitySqlExtensions.cs
- SoapFault.cs
- xsdvalidator.cs
- MessageProtectionOrder.cs
- __Error.cs
- BitmapEffectGroup.cs
- Viewport3DAutomationPeer.cs
- OutputScopeManager.cs
- InputProcessorProfiles.cs