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
- ZoneIdentityPermission.cs
- MemoryPressure.cs
- HtmlGenericControl.cs
- TextLine.cs
- System.Data.OracleClient_BID.cs
- DateBoldEvent.cs
- LoginViewDesigner.cs
- SplashScreen.cs
- TemplateBindingExtension.cs
- ApplicationHost.cs
- MexHttpsBindingElement.cs
- Part.cs
- PopupControlService.cs
- RequestCachePolicy.cs
- Formatter.cs
- MappingSource.cs
- OAVariantLib.cs
- UIAgentAsyncParams.cs
- StateMachineWorkflowDesigner.cs
- ZipIOModeEnforcingStream.cs
- WebServiceHostFactory.cs
- XmlSchemaSimpleTypeRestriction.cs
- ExpressionQuoter.cs
- AppDomainAttributes.cs
- NumberFormatInfo.cs
- StateMachineWorkflowInstance.cs
- EmbossBitmapEffect.cs
- ControlPropertyNameConverter.cs
- HTMLTagNameToTypeMapper.cs
- StdRegProviderWrapper.cs
- ObjectDataSource.cs
- CollectionCodeDomSerializer.cs
- GridViewColumnHeader.cs
- Converter.cs
- FixedNode.cs
- ScrollChrome.cs
- SocketException.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- Compiler.cs
- ApplicationManager.cs
- SecurityException.cs
- AuthorizationRule.cs
- MarshalByRefObject.cs
- Scheduling.cs
- SectionInput.cs
- AudioFormatConverter.cs
- Propagator.JoinPropagator.cs
- ContentDefinition.cs
- DataTableCollection.cs
- UpDownBase.cs
- TimeoutConverter.cs
- ObjectSecurity.cs
- latinshape.cs
- EncodingNLS.cs
- SpeechDetectedEventArgs.cs
- ProjectionCamera.cs
- PrinterResolution.cs
- MatrixTransform3D.cs
- PixelShader.cs
- GeometryModel3D.cs
- ZipIOLocalFileBlock.cs
- ScrollEventArgs.cs
- BitmapEffectGeneralTransform.cs
- UidPropertyAttribute.cs
- RegexMatch.cs
- AssemblyBuilder.cs
- ColumnMapVisitor.cs
- ProcessHostFactoryHelper.cs
- Collection.cs
- MachineKeySection.cs
- ZipPackage.cs
- TreeNodeEventArgs.cs
- Listbox.cs
- ErrorProvider.cs
- EnumType.cs
- SecurityChannelFaultConverter.cs
- ReadWriteObjectLock.cs
- TreeNodeBinding.cs
- XmlSerializerVersionAttribute.cs
- XmlWriterSettings.cs
- HwndKeyboardInputProvider.cs
- SchemaElementLookUpTableEnumerator.cs
- StrongNameHelpers.cs
- UseManagedPresentationBindingElement.cs
- SectionVisual.cs
- QuarticEase.cs
- entityreference_tresulttype.cs
- DataGridViewColumnEventArgs.cs
- NavigationProperty.cs
- NamespaceEmitter.cs
- StreamMarshaler.cs
- EvidenceTypeDescriptor.cs
- SiteOfOriginPart.cs
- ServiceHttpHandlerFactory.cs
- StorageComplexTypeMapping.cs
- GraphicsPathIterator.cs
- EventOpcode.cs
- xamlnodes.cs
- GZipStream.cs
- cookieexception.cs