Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- CodeCommentStatementCollection.cs
- PropertyTabChangedEvent.cs
- FixUpCollection.cs
- _BaseOverlappedAsyncResult.cs
- XmlQueryCardinality.cs
- EdmMember.cs
- AncestorChangedEventArgs.cs
- NetCodeGroup.cs
- GlobalProxySelection.cs
- DocumentApplicationJournalEntryEventArgs.cs
- OleDbStruct.cs
- FixedDocumentSequencePaginator.cs
- ObjectItemAssemblyLoader.cs
- QuaternionValueSerializer.cs
- SamlAuthenticationStatement.cs
- MetadataPropertyvalue.cs
- XmlReaderDelegator.cs
- TableDetailsCollection.cs
- WorkflowDesignerMessageFilter.cs
- EdmProperty.cs
- BuilderPropertyEntry.cs
- ServiceModelExtensionCollectionElement.cs
- SmtpReplyReader.cs
- TextRangeSerialization.cs
- WCFBuildProvider.cs
- NodeInfo.cs
- Knowncolors.cs
- SimpleHandlerFactory.cs
- ArgumentValueSerializer.cs
- DataSetSchema.cs
- Identifier.cs
- Message.cs
- BindingContext.cs
- BitmapScalingModeValidation.cs
- MatrixAnimationUsingKeyFrames.cs
- HttpPostProtocolImporter.cs
- ClientSideProviderDescription.cs
- ActiveXHost.cs
- SamlSerializer.cs
- GeometryCollection.cs
- SoundPlayerAction.cs
- XmlWhitespace.cs
- ExtenderControl.cs
- FormsAuthenticationCredentials.cs
- FolderBrowserDialog.cs
- ConfigXmlElement.cs
- DetailsViewPagerRow.cs
- AccessDataSourceDesigner.cs
- SqlUDTStorage.cs
- WebEvents.cs
- PropertyDescriptorGridEntry.cs
- StructureChangedEventArgs.cs
- Freezable.cs
- WebPartCatalogCloseVerb.cs
- mediaeventargs.cs
- DependencyObjectCodeDomSerializer.cs
- ColorKeyFrameCollection.cs
- ExpressionServices.cs
- ProviderCollection.cs
- SymbolPair.cs
- RevocationPoint.cs
- TableCellsCollectionEditor.cs
- CategoryState.cs
- FrameworkElementFactoryMarkupObject.cs
- DesignerResources.cs
- MetadataSource.cs
- ListViewItem.cs
- IPCCacheManager.cs
- TreeSet.cs
- FileAuthorizationModule.cs
- InvalidAsynchronousStateException.cs
- DataBinding.cs
- Stack.cs
- SqlMethods.cs
- UserControlCodeDomTreeGenerator.cs
- COM2Enum.cs
- SrgsItemList.cs
- XmlValidatingReaderImpl.cs
- EventSchemaTraceListener.cs
- ConnectionManagementElement.cs
- AllMembershipCondition.cs
- Timer.cs
- TableSectionStyle.cs
- SerializationInfoEnumerator.cs
- BufferModeSettings.cs
- WebPartConnectionsCancelEventArgs.cs
- ObjectDataSourceEventArgs.cs
- InvokeWebServiceDesigner.cs
- PathGeometry.cs
- LockCookie.cs
- IResourceProvider.cs
- FlatButtonAppearance.cs
- RawStylusInputCustomDataList.cs
- SecurityException.cs
- HttpsTransportBindingElement.cs
- SmiContextFactory.cs
- ProviderIncompatibleException.cs
- ScriptHandlerFactory.cs
- CannotUnloadAppDomainException.cs
- EndpointDiscoveryBehavior.cs