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
- HttpCookie.cs
- ChannelSinkStacks.cs
- newitemfactory.cs
- LoginName.cs
- SystemNetworkInterface.cs
- SmiXetterAccessMap.cs
- RuntimeEnvironment.cs
- DBDataPermissionAttribute.cs
- SmtpException.cs
- SemanticTag.cs
- ForEach.cs
- LinkDesigner.cs
- DocobjHost.cs
- WinFormsUtils.cs
- StorageMappingItemLoader.cs
- AppDomainResourcePerfCounters.cs
- SystemDiagnosticsSection.cs
- FakeModelItemImpl.cs
- ObjectParameter.cs
- AccessibleObject.cs
- ScrollEvent.cs
- RemotingServices.cs
- SqlServer2KCompatibilityCheck.cs
- TextBoxBaseDesigner.cs
- ValueTypeFieldReference.cs
- ObjectReferenceStack.cs
- StorageEntityContainerMapping.cs
- MetadataSerializer.cs
- Interfaces.cs
- RestHandlerFactory.cs
- CaseStatement.cs
- IssuedTokenParametersEndpointAddressElement.cs
- EncryptedXml.cs
- LoadedOrUnloadedOperation.cs
- RTLAwareMessageBox.cs
- ProfessionalColorTable.cs
- DesignerForm.cs
- webbrowsersite.cs
- DataColumnCollection.cs
- BaseDataBoundControl.cs
- ScrollableControlDesigner.cs
- MouseButton.cs
- ComponentCommands.cs
- bidPrivateBase.cs
- ArrayWithOffset.cs
- CopyNamespacesAction.cs
- DataReceivedEventArgs.cs
- NumberFormatInfo.cs
- ResourceContainer.cs
- ToolStripManager.cs
- ErrorStyle.cs
- ProfileProvider.cs
- Faults.cs
- PrimitiveXmlSerializers.cs
- Vector3D.cs
- ellipse.cs
- OracleMonthSpan.cs
- Decoder.cs
- BindingList.cs
- SmiMetaDataProperty.cs
- XamlWriter.cs
- BitmapCache.cs
- Selection.cs
- JpegBitmapEncoder.cs
- HostedTransportConfigurationManager.cs
- TabControl.cs
- RegexCaptureCollection.cs
- regiisutil.cs
- ControlUtil.cs
- UrlPath.cs
- QilLiteral.cs
- ContainerUtilities.cs
- ExpressionBuilderCollection.cs
- ProfileServiceManager.cs
- XmlCharCheckingReader.cs
- OdbcConnectionPoolProviderInfo.cs
- ListViewSortEventArgs.cs
- FastEncoderWindow.cs
- WrapperSecurityCommunicationObject.cs
- HtmlElementEventArgs.cs
- ObjectListDataBindEventArgs.cs
- WebPartTransformerAttribute.cs
- Size.cs
- WaveHeader.cs
- ManifestResourceInfo.cs
- ThreadStaticAttribute.cs
- IImplicitResourceProvider.cs
- ProxyWebPart.cs
- ListBoxChrome.cs
- HtmlTableCell.cs
- DrawingBrush.cs
- ManipulationLogic.cs
- UIServiceHelper.cs
- XmlSyndicationContent.cs
- RegistrySecurity.cs
- PropertyGridView.cs
- WindowsTokenRoleProvider.cs
- ILGen.cs
- AxisAngleRotation3D.cs
- DecoderNLS.cs