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
- Accessible.cs
- ListBox.cs
- XPathNodeHelper.cs
- ExpressionBuilder.cs
- BitmapFrame.cs
- InvalidProgramException.cs
- DataViewSetting.cs
- BrowserDefinition.cs
- RenderDataDrawingContext.cs
- StylusPointPropertyInfoDefaults.cs
- UniqueEventHelper.cs
- AssemblyAttributes.cs
- DataTable.cs
- AlternateViewCollection.cs
- TemplateLookupAction.cs
- DataServiceQueryContinuation.cs
- DataRowIndexBuffer.cs
- EditBehavior.cs
- SpAudioStreamWrapper.cs
- Screen.cs
- QueueSurrogate.cs
- AsyncCompletedEventArgs.cs
- ControlAdapter.cs
- WhitespaceRuleReader.cs
- GridViewAutoFormat.cs
- SqlDataAdapter.cs
- ADMembershipProvider.cs
- MethodToken.cs
- DetailsViewUpdatedEventArgs.cs
- ListControlStringCollectionEditor.cs
- LeafCellTreeNode.cs
- HwndHostAutomationPeer.cs
- Calendar.cs
- CollectionConverter.cs
- DocumentGrid.cs
- EventLogWatcher.cs
- JournalEntry.cs
- StorageEntitySetMapping.cs
- XmlEncoding.cs
- Scene3D.cs
- ByteRangeDownloader.cs
- PropertyOrder.cs
- HtmlControl.cs
- BackgroundWorker.cs
- SqlDataSourceView.cs
- CommonObjectSecurity.cs
- ToolBar.cs
- InheritablePropertyChangeInfo.cs
- CompileXomlTask.cs
- SelectionRange.cs
- DocumentPaginator.cs
- TextTabProperties.cs
- Point4D.cs
- Literal.cs
- MetabaseReader.cs
- XslNumber.cs
- CustomErrorsSection.cs
- HyperlinkAutomationPeer.cs
- PointLightBase.cs
- ContextStack.cs
- FixedHighlight.cs
- HttpApplicationFactory.cs
- WebSysDescriptionAttribute.cs
- TransactionException.cs
- DirectionalLight.cs
- WebAdminConfigurationHelper.cs
- SQLDateTimeStorage.cs
- PerfService.cs
- ThicknessAnimationBase.cs
- EventRoute.cs
- SelectionUIService.cs
- ReachIDocumentPaginatorSerializer.cs
- CircleHotSpot.cs
- RandomDelaySendsAsyncResult.cs
- XmlSchemaInclude.cs
- DataBoundControlAdapter.cs
- IPAddressCollection.cs
- ValidatorCompatibilityHelper.cs
- ClientTargetCollection.cs
- EventsTab.cs
- TextAction.cs
- linebase.cs
- TypeUtil.cs
- ArgumentNullException.cs
- FormViewUpdateEventArgs.cs
- EntityException.cs
- InvokeHandlers.cs
- SqlNode.cs
- Int16KeyFrameCollection.cs
- WindowsScrollBar.cs
- ConditionalAttribute.cs
- HtmlTernaryTree.cs
- ExpressionBuilderCollection.cs
- PtsPage.cs
- StrokeIntersection.cs
- FormParameter.cs
- InternalCache.cs
- XmlUtil.cs
- DataSetMappper.cs
- MeshGeometry3D.cs