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
- DrawToolTipEventArgs.cs
- CryptoStream.cs
- BufferAllocator.cs
- ManagementObjectCollection.cs
- WindowsStartMenu.cs
- SerializableAttribute.cs
- RadioButton.cs
- SessionIDManager.cs
- CacheSection.cs
- DataGridColumn.cs
- UrlMappingsSection.cs
- PerformanceCounterLib.cs
- SqlUserDefinedAggregateAttribute.cs
- NativeMethods.cs
- SurrogateEncoder.cs
- WinInet.cs
- WebPartConnectionsConnectVerb.cs
- SmiTypedGetterSetter.cs
- RelationshipEnd.cs
- Sentence.cs
- MaskPropertyEditor.cs
- LicFileLicenseProvider.cs
- OleCmdHelper.cs
- ZoneLinkButton.cs
- InputBuffer.cs
- PngBitmapEncoder.cs
- ComPersistableTypeElement.cs
- WindowsListViewItemStartMenu.cs
- JsonDataContract.cs
- SqlVisitor.cs
- SmtpLoginAuthenticationModule.cs
- XmlSchemaSimpleType.cs
- SmtpAuthenticationManager.cs
- ObjectListTitleAttribute.cs
- MarshalByValueComponent.cs
- ModifierKeysConverter.cs
- BinaryObjectWriter.cs
- WhitespaceReader.cs
- ScrollBarAutomationPeer.cs
- TrustSection.cs
- MatrixUtil.cs
- TransmissionStrategy.cs
- Boolean.cs
- AutomationIdentifier.cs
- TextParagraphView.cs
- TableColumnCollection.cs
- DataGridViewImageCell.cs
- KeyToListMap.cs
- DataSourceProvider.cs
- TableRow.cs
- QueryExpr.cs
- WinFormsUtils.cs
- NamedPipeDuplicateContext.cs
- Int32AnimationUsingKeyFrames.cs
- TextUtf8RawTextWriter.cs
- AspNetHostingPermission.cs
- Condition.cs
- AdCreatedEventArgs.cs
- Mapping.cs
- DrawingBrush.cs
- path.cs
- SchemaNames.cs
- WindowsTokenRoleProvider.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- RootAction.cs
- XPathSelectionIterator.cs
- EntityParameter.cs
- _DynamicWinsockMethods.cs
- QilLiteral.cs
- Transactions.cs
- TaiwanCalendar.cs
- InvokeBase.cs
- ModelChangedEventArgsImpl.cs
- CompressStream.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- DiagnosticsConfiguration.cs
- MailWriter.cs
- TextElementEditingBehaviorAttribute.cs
- Propagator.JoinPropagator.cs
- XmlNodeList.cs
- ScaleTransform.cs
- EntityClassGenerator.cs
- RequiredAttributeAttribute.cs
- DataPagerFieldItem.cs
- ThreadStaticAttribute.cs
- SubstitutionList.cs
- COM2FontConverter.cs
- WebRequestModuleElement.cs
- Path.cs
- LinearGradientBrush.cs
- EncoderNLS.cs
- SpecularMaterial.cs
- SQLBoolean.cs
- EasingKeyFrames.cs
- EncryptedKey.cs
- InvokeProviderWrapper.cs
- EntitySqlException.cs
- Avt.cs
- CodeTypeReference.cs
- FileLoadException.cs