Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / 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;
}
}
}
}
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StreamWithDictionary.cs
- BaseComponentEditor.cs
- CharacterBuffer.cs
- HtmlInputControl.cs
- FunctionQuery.cs
- FileDialogCustomPlace.cs
- _NegoStream.cs
- BeginSelectCardRequest.cs
- WindowsAuthenticationModule.cs
- VoiceInfo.cs
- AncillaryOps.cs
- DashStyles.cs
- Byte.cs
- PieceDirectory.cs
- SafeEventLogWriteHandle.cs
- Regex.cs
- RectangleHotSpot.cs
- TableItemStyle.cs
- VisualBrush.cs
- BinaryParser.cs
- DropShadowEffect.cs
- DynamicDataRouteHandler.cs
- DataGridState.cs
- ScrollChrome.cs
- _BasicClient.cs
- SynchronizedRandom.cs
- Mouse.cs
- ExpressionContext.cs
- LayoutSettings.cs
- ReturnType.cs
- ListView.cs
- AutoGeneratedFieldProperties.cs
- SharedConnectionWorkflowTransactionService.cs
- TimersDescriptionAttribute.cs
- SpeechRecognitionEngine.cs
- Debugger.cs
- SchemaImporter.cs
- WinCategoryAttribute.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- DiscreteKeyFrames.cs
- SafeNativeMethods.cs
- CodeValidator.cs
- PathSegment.cs
- NotSupportedException.cs
- ItemType.cs
- PassportAuthentication.cs
- SHA1Managed.cs
- ISAPIApplicationHost.cs
- PropertyItem.cs
- EventListenerClientSide.cs
- ListItem.cs
- AutoResizedEvent.cs
- AssociationSet.cs
- ComponentCollection.cs
- SoapInteropTypes.cs
- WebMessageBodyStyleHelper.cs
- CallbackValidator.cs
- WebPartDisplayMode.cs
- DelegatingHeader.cs
- FormClosedEvent.cs
- SystemException.cs
- FrameworkElement.cs
- Mapping.cs
- TagMapCollection.cs
- CrossContextChannel.cs
- TargetControlTypeAttribute.cs
- DebugHandleTracker.cs
- _SecureChannel.cs
- DataBoundControlParameterTarget.cs
- XmlIlVisitor.cs
- VisualCollection.cs
- DataBinding.cs
- FastEncoder.cs
- ListParagraph.cs
- ColorConverter.cs
- KeyboardEventArgs.cs
- XmlUtf8RawTextWriter.cs
- TabControlAutomationPeer.cs
- IWorkflowDebuggerService.cs
- HandlerBase.cs
- DataPagerField.cs
- Tile.cs
- ByteRangeDownloader.cs
- MasterPage.cs
- ProxyFragment.cs
- WebPartEditorOkVerb.cs
- CachedTypeface.cs
- EntityDataSourceUtil.cs
- Mouse.cs
- TableCell.cs
- BitmapEffectInputData.cs
- Function.cs
- SQLBinary.cs
- ResourceDictionaryCollection.cs
- Symbol.cs
- ErrorReporting.cs
- MenuItemCollection.cs
- AdornerDecorator.cs
- ItemsPanelTemplate.cs
- ProtocolsConfigurationEntry.cs