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
- PropertyTab.cs
- MimeTypePropertyAttribute.cs
- NativeMethodsCLR.cs
- GenericsInstances.cs
- DBNull.cs
- VirtualDirectoryMappingCollection.cs
- DispatcherExceptionFilterEventArgs.cs
- CompositeControl.cs
- AdRotator.cs
- SqlAliaser.cs
- WebPartManagerInternals.cs
- ParsedAttributeCollection.cs
- MessageBox.cs
- TextBox.cs
- LinkedList.cs
- WebPartCatalogCloseVerb.cs
- ModifiableIteratorCollection.cs
- WebServicesDescriptionAttribute.cs
- XmlNodeList.cs
- MultiDataTrigger.cs
- HostExecutionContextManager.cs
- XmlnsCache.cs
- DBCommand.cs
- Header.cs
- ByteAnimation.cs
- AutomationElement.cs
- FormViewModeEventArgs.cs
- ElementUtil.cs
- ThemeDictionaryExtension.cs
- EventLogger.cs
- XmlCharType.cs
- ListBox.cs
- PermissionRequestEvidence.cs
- Native.cs
- Thumb.cs
- GuidelineCollection.cs
- InkPresenterAutomationPeer.cs
- MediaTimeline.cs
- ImageMap.cs
- SQLSingleStorage.cs
- EncryptedKeyIdentifierClause.cs
- DataRowCollection.cs
- MSAAEventDispatcher.cs
- DesignConnectionCollection.cs
- ComponentDispatcherThread.cs
- ArrayConverter.cs
- NativeMethods.cs
- MouseActionConverter.cs
- ParseNumbers.cs
- ParserOptions.cs
- TTSVoice.cs
- XmlQueryCardinality.cs
- GraphicsPath.cs
- DistributedTransactionPermission.cs
- ExpressionBinding.cs
- GenericTextProperties.cs
- DesignerCommandAdapter.cs
- RepeaterDataBoundAdapter.cs
- FrameworkEventSource.cs
- Camera.cs
- DrawingGroupDrawingContext.cs
- LogicalMethodInfo.cs
- PowerStatus.cs
- BindingFormattingDialog.cs
- DiffuseMaterial.cs
- WaitHandleCannotBeOpenedException.cs
- Dictionary.cs
- Brushes.cs
- TraceUtility.cs
- ImageAnimator.cs
- InputScopeConverter.cs
- WebPartsPersonalizationAuthorization.cs
- GeneralTransform3DTo2D.cs
- TextTrailingWordEllipsis.cs
- TemplateColumn.cs
- XmlToDatasetMap.cs
- VirtualDirectoryMapping.cs
- WebPartDeleteVerb.cs
- MergeLocalizationDirectives.cs
- DbProviderSpecificTypePropertyAttribute.cs
- EdmItemCollection.cs
- HandlerWithFactory.cs
- XamlWriter.cs
- ThicknessAnimationBase.cs
- SizeKeyFrameCollection.cs
- COM2ExtendedTypeConverter.cs
- CodeCommentStatement.cs
- PriorityQueue.cs
- PenLineCapValidation.cs
- TranslateTransform.cs
- ToolboxComponentsCreatedEventArgs.cs
- CursorConverter.cs
- BinaryUtilClasses.cs
- RoleService.cs
- ToolStripGripRenderEventArgs.cs
- ContextBase.cs
- BindingValueChangedEventArgs.cs
- _OverlappedAsyncResult.cs
- SoapTransportImporter.cs
- WindowsFormsSectionHandler.cs