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
- WebResourceAttribute.cs
- HttpClientCertificate.cs
- WindowsScroll.cs
- InvariantComparer.cs
- Invariant.cs
- CharKeyFrameCollection.cs
- precedingquery.cs
- ObjectSpanRewriter.cs
- DoubleSumAggregationOperator.cs
- DbProviderFactories.cs
- Vector3DCollectionConverter.cs
- CustomErrorCollection.cs
- PkcsUtils.cs
- DoubleLink.cs
- DataRecordInfo.cs
- MessageDescriptionCollection.cs
- DbConnectionPoolGroupProviderInfo.cs
- ToolTip.cs
- ControlEvent.cs
- AssemblyNameProxy.cs
- AttributeEmitter.cs
- ConsumerConnectionPointCollection.cs
- FormCollection.cs
- PreviewKeyDownEventArgs.cs
- VariableAction.cs
- DataGridViewLinkCell.cs
- WorkflowMarkupElementEventArgs.cs
- HttpCacheParams.cs
- Random.cs
- BufferedWebEventProvider.cs
- _RequestCacheProtocol.cs
- ConfigurationStrings.cs
- RouteCollection.cs
- ILGenerator.cs
- base64Transforms.cs
- ArrayExtension.cs
- ExceptionRoutedEventArgs.cs
- FileAuthorizationModule.cs
- SendReply.cs
- CompositionTarget.cs
- SemanticKeyElement.cs
- TextEditorCopyPaste.cs
- ButtonFlatAdapter.cs
- SigningDialog.cs
- ByteConverter.cs
- SwitchElementsCollection.cs
- SubMenuStyleCollectionEditor.cs
- TabItemAutomationPeer.cs
- TimerElapsedEvenArgs.cs
- QilReplaceVisitor.cs
- Metafile.cs
- CreateUserWizardStep.cs
- WinEventTracker.cs
- UnmanagedMemoryStream.cs
- SqlBuilder.cs
- Window.cs
- TimeSpanStorage.cs
- CodeSpit.cs
- TimersDescriptionAttribute.cs
- OdbcFactory.cs
- AssemblyBuilderData.cs
- RootCodeDomSerializer.cs
- SafeCryptHandles.cs
- WindowsListViewScroll.cs
- MulticastIPAddressInformationCollection.cs
- SqlTransaction.cs
- InputReferenceExpression.cs
- MetadataWorkspace.cs
- GroupBox.cs
- WebPartVerbCollection.cs
- ExpandedWrapper.cs
- Semaphore.cs
- EntityModelSchemaGenerator.cs
- DataControlExtensions.cs
- TargetInvocationException.cs
- SearchForVirtualItemEventArgs.cs
- ClientCredentialsSecurityTokenManager.cs
- EntityTypeBase.cs
- HttpWrapper.cs
- MouseCaptureWithinProperty.cs
- DataGridViewSelectedRowCollection.cs
- CookielessHelper.cs
- StateDesigner.cs
- ProvidersHelper.cs
- WindowsTitleBar.cs
- Activity.cs
- CodeLinePragma.cs
- ApplicationSecurityManager.cs
- SiteMapDataSourceView.cs
- EUCJPEncoding.cs
- WorkingDirectoryEditor.cs
- ToolStripContextMenu.cs
- ImageMap.cs
- ToolStripMenuItem.cs
- DesignBindingValueUIHandler.cs
- DelegatingHeader.cs
- CreateUserWizard.cs
- DataSourceSelectArguments.cs
- FaultPropagationQuery.cs
- ObjectTag.cs