Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- XhtmlBasicImageAdapter.cs
- _NtlmClient.cs
- FormView.cs
- TagMapInfo.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- XmlAtomErrorReader.cs
- ClientBuildManagerCallback.cs
- PasswordRecovery.cs
- ConstraintCollection.cs
- Image.cs
- PageAdapter.cs
- HtmlInputRadioButton.cs
- TemplateControlBuildProvider.cs
- ListenerAdapterBase.cs
- EastAsianLunisolarCalendar.cs
- UIElementParagraph.cs
- MailWebEventProvider.cs
- SqlClientWrapperSmiStream.cs
- IQueryable.cs
- TagElement.cs
- Quaternion.cs
- ResponseStream.cs
- XPathNavigatorReader.cs
- HotSpot.cs
- Utils.cs
- WindowsServiceCredential.cs
- UnsafeNativeMethods.cs
- TraceSection.cs
- RemoteDebugger.cs
- HandlerWithFactory.cs
- EmissiveMaterial.cs
- EntitySetRetriever.cs
- Optimizer.cs
- basecomparevalidator.cs
- SQLMoneyStorage.cs
- WindowsToolbarItemAsMenuItem.cs
- NameValuePermission.cs
- ProfilePropertyNameValidator.cs
- DataObjectMethodAttribute.cs
- DataGridViewCellStyleConverter.cs
- RequestQueue.cs
- UnsafeNativeMethods.cs
- ScanQueryOperator.cs
- HtmlInputHidden.cs
- FeatureSupport.cs
- XmlWellformedWriterHelpers.cs
- QuadTree.cs
- PropertyManager.cs
- CodeTypeReference.cs
- UdpDiscoveryEndpointElement.cs
- Timer.cs
- LinqDataSourceContextEventArgs.cs
- InvalidFilterCriteriaException.cs
- VsPropertyGrid.cs
- NotSupportedException.cs
- ConsumerConnectionPoint.cs
- SubpageParaClient.cs
- FixedSOMTableRow.cs
- ObjectStateManagerMetadata.cs
- TextEditorTyping.cs
- TreeSet.cs
- MinMaxParagraphWidth.cs
- ObjectCacheSettings.cs
- ChannelServices.cs
- Sentence.cs
- OdbcError.cs
- Win32MouseDevice.cs
- PageAdapter.cs
- PostBackTrigger.cs
- WebPartExportVerb.cs
- WindowsRebar.cs
- FacetValueContainer.cs
- PrimitiveDataContract.cs
- IisTraceListener.cs
- IsolatedStorageException.cs
- AccessorTable.cs
- CompressedStack.cs
- PixelFormat.cs
- ImageProxy.cs
- Tile.cs
- CodeDOMUtility.cs
- SignatureHelper.cs
- RtfControlWordInfo.cs
- BitmapEffect.cs
- XmlSignatureManifest.cs
- WindowsBrush.cs
- MatchAttribute.cs
- ValidatorUtils.cs
- safemediahandle.cs
- CompilerInfo.cs
- OutputCacheModule.cs
- DbConnectionClosed.cs
- StylusPointProperty.cs
- ExceptionUtil.cs
- TransportSecurityProtocol.cs
- SessionStateModule.cs
- StateMachineDesignerPaint.cs
- ListViewDeleteEventArgs.cs
- MaskedTextProvider.cs
- GestureRecognizer.cs