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
- CapabilitiesRule.cs
- DataTableReader.cs
- XmlExceptionHelper.cs
- LassoHelper.cs
- DCSafeHandle.cs
- OrderedDictionary.cs
- SrgsToken.cs
- DataRelation.cs
- OdbcParameterCollection.cs
- FileLoadException.cs
- SQLDateTime.cs
- SqlProfileProvider.cs
- SortKey.cs
- XmlValueConverter.cs
- ThreadPoolTaskScheduler.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- WebReferenceOptions.cs
- LowerCaseStringConverter.cs
- XPathItem.cs
- AppDomainGrammarProxy.cs
- ObjectDataSourceMethodEventArgs.cs
- ComponentDispatcher.cs
- FileSystemInfo.cs
- DynamicMetaObject.cs
- ActiveXHelper.cs
- ErrorWebPart.cs
- AttributeCollection.cs
- SizeConverter.cs
- VariableBinder.cs
- XmlSchemaAll.cs
- SecurityKeyUsage.cs
- GAC.cs
- LinkLabelLinkClickedEvent.cs
- XamlPathDataSerializer.cs
- SqlMethodCallConverter.cs
- EventBuilder.cs
- ContentType.cs
- SafeNativeMethodsOther.cs
- ColumnResizeUndoUnit.cs
- ContextDataSourceContextData.cs
- EditorZone.cs
- EasingKeyFrames.cs
- TdsParserStateObject.cs
- DataGridViewRowStateChangedEventArgs.cs
- Visual3D.cs
- WebBrowsableAttribute.cs
- CreatingCookieEventArgs.cs
- PDBReader.cs
- SlotInfo.cs
- StrokeCollection.cs
- UserPersonalizationStateInfo.cs
- FormsAuthentication.cs
- LinkConverter.cs
- PeerTransportListenAddressValidator.cs
- Simplifier.cs
- SimpleTextLine.cs
- ContentOperations.cs
- SafePEFileHandle.cs
- NumericUpDownAcceleration.cs
- RemotingConfiguration.cs
- sqlnorm.cs
- VirtualPathData.cs
- TabItemWrapperAutomationPeer.cs
- RectangleGeometry.cs
- XhtmlTextWriter.cs
- ToolStripPanelSelectionBehavior.cs
- QueryNode.cs
- printdlgexmarshaler.cs
- DnsPermission.cs
- ToolStripProfessionalLowResolutionRenderer.cs
- SqlDataReader.cs
- SQLMembershipProvider.cs
- SoapAttributeAttribute.cs
- ReflectionServiceProvider.cs
- Geometry.cs
- TextTreeTextElementNode.cs
- ThreadSafeList.cs
- ConfigurationSectionCollection.cs
- RotateTransform3D.cs
- ConfigurationStrings.cs
- XmlRootAttribute.cs
- PolicyStatement.cs
- ConcurrencyBehavior.cs
- WithParamAction.cs
- XmlSerializerVersionAttribute.cs
- FrugalMap.cs
- CellRelation.cs
- XhtmlBasicTextBoxAdapter.cs
- DeviceFiltersSection.cs
- dataobject.cs
- VBIdentifierName.cs
- UniqueEventHelper.cs
- DataFormats.cs
- XmlImplementation.cs
- GacUtil.cs
- FilteredReadOnlyMetadataCollection.cs
- xmlformatgeneratorstatics.cs
- HttpWebRequestElement.cs
- SqlDataReader.cs
- PeerCollaborationPermission.cs