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
- SkewTransform.cs
- LambdaCompiler.Logical.cs
- ServiceNameElement.cs
- QueryOutputWriter.cs
- Baml2006Reader.cs
- Rotation3D.cs
- CharAnimationUsingKeyFrames.cs
- RolePrincipal.cs
- XPathException.cs
- AudioLevelUpdatedEventArgs.cs
- Accessible.cs
- LocatorGroup.cs
- ListViewTableCell.cs
- ECDiffieHellmanCng.cs
- DocumentEventArgs.cs
- ConsoleKeyInfo.cs
- ImageListStreamer.cs
- AppSettingsSection.cs
- Composition.cs
- XpsResourcePolicy.cs
- MenuItemStyle.cs
- IssuanceLicense.cs
- ConnectionsZoneAutoFormat.cs
- Attribute.cs
- HttpApplicationFactory.cs
- SqlMethodCallConverter.cs
- ChildTable.cs
- StorageRoot.cs
- ValidatingReaderNodeData.cs
- ResourceExpressionBuilder.cs
- PropertyTab.cs
- StylusButtonEventArgs.cs
- connectionpool.cs
- EntityViewGenerationAttribute.cs
- PageAsyncTask.cs
- HttpServerChannel.cs
- SendParametersContent.cs
- GetPageCompletedEventArgs.cs
- Double.cs
- DependencyPropertyDescriptor.cs
- AssemblyBuilder.cs
- IPEndPointCollection.cs
- BypassElement.cs
- GcHandle.cs
- ToolStripItemEventArgs.cs
- SystemTcpStatistics.cs
- DoubleStorage.cs
- XmlArrayAttribute.cs
- StorageEndPropertyMapping.cs
- RangeValuePattern.cs
- Point4D.cs
- FullTextBreakpoint.cs
- ResourcesChangeInfo.cs
- updateconfighost.cs
- ObservableDictionary.cs
- infer.cs
- EventProxy.cs
- PrivilegeNotHeldException.cs
- TrustSection.cs
- QueryCacheKey.cs
- Pool.cs
- ConfigurationStrings.cs
- XmlSchemaException.cs
- ReadWriteSpinLock.cs
- LocalizabilityAttribute.cs
- DocumentPageViewAutomationPeer.cs
- DataRowView.cs
- HttpTransportBindingElement.cs
- LinkedResource.cs
- RemoteCryptoTokenProvider.cs
- TableChangeProcessor.cs
- DBConnectionString.cs
- Group.cs
- FlowDocumentScrollViewer.cs
- ArraySortHelper.cs
- Quaternion.cs
- UrlAuthorizationModule.cs
- ContextProperty.cs
- LambdaCompiler.Lambda.cs
- EntityCommandCompilationException.cs
- DataContractSerializerOperationBehavior.cs
- TimeSpanOrInfiniteConverter.cs
- StylusEventArgs.cs
- ExpressionNode.cs
- DynamicDataResources.Designer.cs
- ToolStripItemClickedEventArgs.cs
- CollectionBuilder.cs
- BulletChrome.cs
- Logging.cs
- XmlDataSourceNodeDescriptor.cs
- RegexCapture.cs
- WindowsAuthenticationEventArgs.cs
- CompilerScopeManager.cs
- SharedPerformanceCounter.cs
- QilPatternFactory.cs
- StyleHelper.cs
- VideoDrawing.cs
- WebPartCancelEventArgs.cs
- OdbcPermission.cs
- DataGridParentRows.cs