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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PaintValueEventArgs.cs
- SqlParameterCollection.cs
- UnknownBitmapEncoder.cs
- XLinq.cs
- Boolean.cs
- SQLByte.cs
- Line.cs
- SystemNetHelpers.cs
- Connection.cs
- FullTextState.cs
- ellipse.cs
- PropertyGeneratedEventArgs.cs
- RoleServiceManager.cs
- TransportSecurityProtocolFactory.cs
- SrgsText.cs
- UnsafeNativeMethodsCLR.cs
- AutomationIdentifier.cs
- filewebresponse.cs
- DbConnectionClosed.cs
- ForceCopyBuildProvider.cs
- ClientFormsIdentity.cs
- EntryWrittenEventArgs.cs
- WebPartConnectionCollection.cs
- BrowserInteropHelper.cs
- JumpPath.cs
- WhitespaceRule.cs
- odbcmetadatafactory.cs
- DataObject.cs
- AnnotationHighlightLayer.cs
- PersistenceTypeAttribute.cs
- XmlComplianceUtil.cs
- SQLInt16Storage.cs
- PackWebResponse.cs
- FreezableDefaultValueFactory.cs
- BamlResourceContent.cs
- ListControlConvertEventArgs.cs
- OleCmdHelper.cs
- ObjectHelper.cs
- ListViewDataItem.cs
- PersonalizableTypeEntry.cs
- HttpWriter.cs
- Binding.cs
- ToolStripContentPanelRenderEventArgs.cs
- DataServiceQueryOfT.cs
- ThreadInterruptedException.cs
- FormatSettings.cs
- ExpandCollapsePattern.cs
- XmlWhitespace.cs
- COM2EnumConverter.cs
- EncoderParameter.cs
- GridItemPattern.cs
- ZipIOExtraFieldElement.cs
- SymmetricSecurityProtocolFactory.cs
- ColorDialog.cs
- WebServiceHostFactory.cs
- LinkArea.cs
- AdCreatedEventArgs.cs
- ApplicationBuildProvider.cs
- _StreamFramer.cs
- ListComponentEditor.cs
- DictionaryManager.cs
- IsolatedStorageSecurityState.cs
- ContainerUtilities.cs
- TextEditorSelection.cs
- ScrollProperties.cs
- _ConnectOverlappedAsyncResult.cs
- XmlDictionaryReader.cs
- WebPartDisplayMode.cs
- WindowAutomationPeer.cs
- SecurityMode.cs
- QilFunction.cs
- CompositeActivityValidator.cs
- PaperSource.cs
- EntityDataSourceSelectingEventArgs.cs
- DataViewListener.cs
- Italic.cs
- ColorAnimationBase.cs
- mda.cs
- TemplateControlBuildProvider.cs
- Soap12ProtocolReflector.cs
- XmlDocumentSurrogate.cs
- XmlTextReaderImplHelpers.cs
- EdmMember.cs
- ScaleTransform.cs
- SqlConnectionManager.cs
- OdbcUtils.cs
- Internal.cs
- DetailsViewUpdateEventArgs.cs
- NumericPagerField.cs
- Trace.cs
- PermissionAttributes.cs
- RedBlackList.cs
- IgnoreFlushAndCloseStream.cs
- CodeMethodMap.cs
- LayoutTableCell.cs
- UpdateExpressionVisitor.cs
- TransactionFlowOption.cs
- EntryWrittenEventArgs.cs
- IArgumentProvider.cs
- ConnectionStringSettings.cs