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
- CatalogZoneAutoFormat.cs
- DesignBindingPropertyDescriptor.cs
- BinaryConverter.cs
- ComplexPropertyEntry.cs
- DSACryptoServiceProvider.cs
- UIElementIsland.cs
- XsltCompileContext.cs
- COM2FontConverter.cs
- PrintDocument.cs
- PtsPage.cs
- IPHostEntry.cs
- LoginName.cs
- TCEAdapterGenerator.cs
- SQLInt16.cs
- StatusBar.cs
- PermissionSet.cs
- DrawingImage.cs
- Item.cs
- NullableBoolConverter.cs
- LinkLabelLinkClickedEvent.cs
- InternalControlCollection.cs
- TreeNodeCollection.cs
- GenericPrincipal.cs
- StatusBarItem.cs
- ViewService.cs
- DtrList.cs
- TraceLevelStore.cs
- ReliableOutputConnection.cs
- Buffer.cs
- GeneralTransform3DGroup.cs
- MultiByteCodec.cs
- Decimal.cs
- RecognizedAudio.cs
- TdsParserSafeHandles.cs
- StringUtil.cs
- CurrencyWrapper.cs
- bidPrivateBase.cs
- DataGridViewElement.cs
- SafeCryptoHandles.cs
- TrustLevelCollection.cs
- DataGridViewSelectedColumnCollection.cs
- BevelBitmapEffect.cs
- QilChoice.cs
- ContextMenu.cs
- securitymgrsite.cs
- Attributes.cs
- EventsTab.cs
- XmlDataLoader.cs
- CompositeTypefaceMetrics.cs
- DelegatingTypeDescriptionProvider.cs
- DataFormats.cs
- DoWorkEventArgs.cs
- StatusBar.cs
- DrawingCollection.cs
- ReplyChannelBinder.cs
- IteratorDescriptor.cs
- ListBindingHelper.cs
- VerificationAttribute.cs
- DecimalStorage.cs
- StrokeSerializer.cs
- PropertyCollection.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- HtmlTableRow.cs
- IOThreadScheduler.cs
- ListSortDescription.cs
- Material.cs
- TextEffectResolver.cs
- TagNameToTypeMapper.cs
- TraceHwndHost.cs
- WebBrowserNavigatedEventHandler.cs
- RemoteWebConfigurationHostServer.cs
- XamlRtfConverter.cs
- SQLCharsStorage.cs
- ColumnMap.cs
- SimpleTextLine.cs
- BinHexDecoder.cs
- SoapUnknownHeader.cs
- TransformProviderWrapper.cs
- CodeParameterDeclarationExpression.cs
- HMACMD5.cs
- CommentAction.cs
- IdnMapping.cs
- PerformanceCounter.cs
- RuleSettingsCollection.cs
- VersionedStream.cs
- RouteParametersHelper.cs
- __ConsoleStream.cs
- RepeaterCommandEventArgs.cs
- ASCIIEncoding.cs
- SettingsPropertyNotFoundException.cs
- EditingScope.cs
- WmiEventSink.cs
- PrivilegeNotHeldException.cs
- Section.cs
- JulianCalendar.cs
- LayoutEvent.cs
- CodeIdentifiers.cs
- Dump.cs
- ProtocolException.cs
- KeyedHashAlgorithm.cs