Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- InternalControlCollection.cs
- KeyTime.cs
- InputScopeNameConverter.cs
- XmlSchema.cs
- ComponentCollection.cs
- OleDbParameter.cs
- FullTrustAssembly.cs
- SpellerInterop.cs
- Border.cs
- IFlowDocumentViewer.cs
- EFAssociationProvider.cs
- DbDeleteCommandTree.cs
- WindowsRichEdit.cs
- DiagnosticSection.cs
- HttpCacheVary.cs
- Filter.cs
- TypeUtil.cs
- DataTableMappingCollection.cs
- TextElement.cs
- InertiaTranslationBehavior.cs
- XmlDataDocument.cs
- ProxyGenerationError.cs
- assertwrapper.cs
- ImageClickEventArgs.cs
- Journaling.cs
- UIElementIsland.cs
- LayoutExceptionEventArgs.cs
- MailAddressCollection.cs
- DataGridViewControlCollection.cs
- ClientUrlResolverWrapper.cs
- ToolStripDropDownMenu.cs
- DataControlButton.cs
- MemberAccessException.cs
- XamlClipboardData.cs
- XmlDocumentType.cs
- GeneratedContractType.cs
- _TimerThread.cs
- assertwrapper.cs
- CodeArgumentReferenceExpression.cs
- RegistrySecurity.cs
- ThicknessConverter.cs
- EmbossBitmapEffect.cs
- RecommendedAsConfigurableAttribute.cs
- CopyAction.cs
- MultiSelectRootGridEntry.cs
- ImageBrush.cs
- CancellationState.cs
- OleAutBinder.cs
- CallbackDebugElement.cs
- DropShadowBitmapEffect.cs
- ListViewGroupConverter.cs
- CallInfo.cs
- PolicyValidationException.cs
- WebPartConnectionsDisconnectVerb.cs
- RegisteredDisposeScript.cs
- PropertyTabChangedEvent.cs
- XmlUtil.cs
- Ref.cs
- FrameworkRichTextComposition.cs
- ListenerElementsCollection.cs
- Blend.cs
- ServiceDesigner.xaml.cs
- StreamInfo.cs
- PeekCompletedEventArgs.cs
- DateTimeOffset.cs
- CodeRemoveEventStatement.cs
- UnitControl.cs
- WebServiceTypeData.cs
- CellRelation.cs
- CustomPopupPlacement.cs
- LayoutUtils.cs
- ScriptRegistrationManager.cs
- FreeIndexList.cs
- UpdateException.cs
- Pts.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ReadContentAsBinaryHelper.cs
- CqlGenerator.cs
- MachineKeySection.cs
- SessionSwitchEventArgs.cs
- XmlKeywords.cs
- SiteMapDataSourceView.cs
- StorageConditionPropertyMapping.cs
- DecoderBestFitFallback.cs
- CustomAttributeSerializer.cs
- GridViewColumnHeaderAutomationPeer.cs
- MatrixConverter.cs
- AuthorizationContext.cs
- TextMarkerSource.cs
- DbDataAdapter.cs
- PrintPreviewControl.cs
- RepeatInfo.cs
- WorkflowOperationInvoker.cs
- DifferencingCollection.cs
- ColumnResult.cs
- CookieHandler.cs
- ZipIOBlockManager.cs
- SQLInt16Storage.cs
- InternalCache.cs
- BamlLocalizationDictionary.cs