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
- ArrayHelper.cs
- WebPartDeleteVerb.cs
- FileDialog_Vista_Interop.cs
- ClientUtils.cs
- SizeConverter.cs
- DBConcurrencyException.cs
- Configuration.cs
- Cloud.cs
- DeploymentExceptionMapper.cs
- StreamGeometryContext.cs
- SystemInformation.cs
- OracleBinary.cs
- ShaderRenderModeValidation.cs
- WebSysDescriptionAttribute.cs
- BitHelper.cs
- PerformanceCounterPermissionAttribute.cs
- RandomNumberGenerator.cs
- SmtpAuthenticationManager.cs
- Parallel.cs
- ProxyFragment.cs
- EvidenceBase.cs
- ProfilePropertyNameValidator.cs
- XmlDocument.cs
- MessageDesigner.cs
- NotSupportedException.cs
- IfJoinedCondition.cs
- ObjectPersistData.cs
- SpotLight.cs
- SafeFileMappingHandle.cs
- BitmapEffectGroup.cs
- ObjectSet.cs
- DataGridViewCellPaintingEventArgs.cs
- ItemsControlAutomationPeer.cs
- Descriptor.cs
- TimestampInformation.cs
- RayMeshGeometry3DHitTestResult.cs
- RequestCachePolicyConverter.cs
- EventItfInfo.cs
- TextRenderingModeValidation.cs
- CompilerErrorCollection.cs
- SplashScreenNativeMethods.cs
- InternalConfigSettingsFactory.cs
- AlphaSortedEnumConverter.cs
- Variant.cs
- ProfileProvider.cs
- ChannelSinkStacks.cs
- CalendarData.cs
- DataSourceSelectArguments.cs
- XmlDataProvider.cs
- ToolStripPanelRenderEventArgs.cs
- Int64Animation.cs
- MembershipSection.cs
- LocalValueEnumerator.cs
- ISFTagAndGuidCache.cs
- FormsAuthenticationUserCollection.cs
- Classification.cs
- ResourcePart.cs
- ListMarkerSourceInfo.cs
- SvcFileManager.cs
- UserControlParser.cs
- ArgumentException.cs
- UnhandledExceptionEventArgs.cs
- CalendarBlackoutDatesCollection.cs
- HeaderedItemsControl.cs
- ExponentialEase.cs
- CheckedPointers.cs
- QueryOperationResponseOfT.cs
- FactoryGenerator.cs
- DelegatedStream.cs
- WindowsGraphicsCacheManager.cs
- ChannelSinkStacks.cs
- TextRangeEditTables.cs
- DataRowChangeEvent.cs
- DataViewManager.cs
- ViewUtilities.cs
- HttpModuleAction.cs
- X509Extension.cs
- AttributeEmitter.cs
- DataGridViewTextBoxColumn.cs
- CompleteWizardStep.cs
- InstanceCreationEditor.cs
- Error.cs
- RewritingValidator.cs
- HighlightOverlayGlyph.cs
- AstNode.cs
- HttpResponseMessageProperty.cs
- XsdCachingReader.cs
- DefaultAutoFieldGenerator.cs
- WinFormsSecurity.cs
- AnnotationResource.cs
- GlyphTypeface.cs
- AutoGeneratedFieldProperties.cs
- FontFamilyValueSerializer.cs
- __TransparentProxy.cs
- VariableAction.cs
- PenCursorManager.cs
- PeerNameResolver.cs
- SingleAnimationBase.cs
- ZipPackagePart.cs
- InputReportEventArgs.cs