Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / ComponentModel / CompModSwitches.cs / 1 / CompModSwitches.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System.Configuration.Assemblies; using System.Diagnostics; using System.Runtime.InteropServices; using System.Runtime.Remoting; using System.Runtime.Serialization.Formatters; using System.Security.Permissions; using System.Threading; ///[HostProtection(SharedState = true)] internal static class CompModSwitches { private static BooleanSwitch commonDesignerServices; private static TraceSwitch eventLog; public static BooleanSwitch CommonDesignerServices { get { if (commonDesignerServices == null) { commonDesignerServices = new BooleanSwitch("CommonDesignerServices", "Assert if any common designer service is not found."); } return commonDesignerServices; } } public static TraceSwitch EventLog { get { if (eventLog == null) { eventLog = new TraceSwitch("EventLog", "Enable tracing for the EventLog component."); } return eventLog; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.ComponentModel { using System.Configuration.Assemblies; using System.Diagnostics; using System.Runtime.InteropServices; using System.Runtime.Remoting; using System.Runtime.Serialization.Formatters; using System.Security.Permissions; using System.Threading; ///[HostProtection(SharedState = true)] internal static class CompModSwitches { private static BooleanSwitch commonDesignerServices; private static TraceSwitch eventLog; public static BooleanSwitch CommonDesignerServices { get { if (commonDesignerServices == null) { commonDesignerServices = new BooleanSwitch("CommonDesignerServices", "Assert if any common designer service is not found."); } return commonDesignerServices; } } public static TraceSwitch EventLog { get { if (eventLog == null) { eventLog = new TraceSwitch("EventLog", "Enable tracing for the EventLog component."); } return eventLog; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ButtonDesigner.cs
- ToolBarButton.cs
- unsafeIndexingFilterStream.cs
- PaginationProgressEventArgs.cs
- DesignerSerializerAttribute.cs
- EarlyBoundInfo.cs
- PropertyFilterAttribute.cs
- SplayTreeNode.cs
- PageTheme.cs
- SqlDataSource.cs
- FontClient.cs
- ListMarkerLine.cs
- ByteStream.cs
- HtmlImage.cs
- DefaultAssemblyResolver.cs
- CallbackBehaviorAttribute.cs
- ListBoxItemAutomationPeer.cs
- XPathParser.cs
- CollectionViewSource.cs
- NoResizeHandleGlyph.cs
- PageContent.cs
- ListViewGroupItemCollection.cs
- SafeEventLogReadHandle.cs
- SqlConnectionManager.cs
- PerformanceCounters.cs
- SqlCacheDependencyDatabaseCollection.cs
- WebPartCancelEventArgs.cs
- sqlinternaltransaction.cs
- EventItfInfo.cs
- XPathNavigator.cs
- EditorPartCollection.cs
- HostVisual.cs
- WindowsSysHeader.cs
- Mapping.cs
- TextSearch.cs
- MediaScriptCommandRoutedEventArgs.cs
- PassportPrincipal.cs
- ParameterInfo.cs
- CodeDirectionExpression.cs
- XsltContext.cs
- FixedSOMTable.cs
- NameObjectCollectionBase.cs
- TextServicesCompartmentEventSink.cs
- DataControlCommands.cs
- SiteMapDataSourceView.cs
- SecurityException.cs
- WmpBitmapEncoder.cs
- ControlDesignerState.cs
- MemberRelationshipService.cs
- TextTreeUndo.cs
- ThemeableAttribute.cs
- CallbackBehaviorAttribute.cs
- MimeMultiPart.cs
- ApplyTemplatesAction.cs
- SmiRecordBuffer.cs
- ControlBuilderAttribute.cs
- ButtonFlatAdapter.cs
- BamlResourceDeserializer.cs
- RTLAwareMessageBox.cs
- SiteMembershipCondition.cs
- SessionStateSection.cs
- ZoneButton.cs
- XmlSchemaSimpleTypeUnion.cs
- InvalidOleVariantTypeException.cs
- ConnectionManagementSection.cs
- BinaryWriter.cs
- PropertyMetadata.cs
- XmlCharType.cs
- FixedNode.cs
- DefaultProxySection.cs
- MustUnderstandBehavior.cs
- OdbcConnection.cs
- Completion.cs
- XmlSchemaComplexContentExtension.cs
- DropDownList.cs
- SubordinateTransaction.cs
- SynchronizationContext.cs
- ConfigurationManagerInternal.cs
- TextEffect.cs
- InnerItemCollectionView.cs
- WriteStateInfoBase.cs
- AutomationIdentifierGuids.cs
- ACL.cs
- ClientScriptManagerWrapper.cs
- CodeDomConfigurationHandler.cs
- EventMappingSettings.cs
- PopupRootAutomationPeer.cs
- DecoderFallback.cs
- WorkflowPersistenceService.cs
- XmlElementAttribute.cs
- Highlights.cs
- ScriptingRoleServiceSection.cs
- ConfigurationSettings.cs
- MemberJoinTreeNode.cs
- CatalogZoneBase.cs
- FrameworkElement.cs
- DateTimeUtil.cs
- ColumnMapCopier.cs
- DbConnectionStringCommon.cs
- EntityDescriptor.cs