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
- WebMessageFormatHelper.cs
- UnsafeNativeMethodsPenimc.cs
- DataGridViewCellFormattingEventArgs.cs
- GroupBoxRenderer.cs
- VisualStyleInformation.cs
- InfocardChannelParameter.cs
- COM2PropertyPageUITypeConverter.cs
- SqlDeflator.cs
- SqlDataRecord.cs
- EventWaitHandle.cs
- SecurityDocument.cs
- ContentElement.cs
- CacheAxisQuery.cs
- SortFieldComparer.cs
- ToolStripCodeDomSerializer.cs
- ColumnHeader.cs
- ViewStateModeByIdAttribute.cs
- MsmqIntegrationValidationBehavior.cs
- LookupNode.cs
- TimeoutException.cs
- HostProtectionPermission.cs
- XPathAncestorIterator.cs
- FtpWebRequest.cs
- OpenFileDialog.cs
- XamlClipboardData.cs
- FixedSOMPageConstructor.cs
- ObjectView.cs
- FontUnitConverter.cs
- KeyEventArgs.cs
- LassoSelectionBehavior.cs
- SortedSetDebugView.cs
- Light.cs
- ListenerSingletonConnectionReader.cs
- WorkflowTimerService.cs
- TextAutomationPeer.cs
- SafeHandles.cs
- CalendarAutomationPeer.cs
- Padding.cs
- AutomationElement.cs
- RelationshipDetailsCollection.cs
- UntrustedRecipientException.cs
- SiteMapSection.cs
- AssemblyAttributes.cs
- VirtualizedContainerService.cs
- TraceUtils.cs
- SecurityContext.cs
- SqlInternalConnection.cs
- XmlAutoDetectWriter.cs
- MSHTMLHost.cs
- FrameworkTextComposition.cs
- ClockGroup.cs
- EFAssociationProvider.cs
- LogReserveAndAppendState.cs
- PublishLicense.cs
- TableLayoutStyle.cs
- ContractDescription.cs
- KeyConstraint.cs
- SimpleBitVector32.cs
- TimeSpanParse.cs
- FieldDescriptor.cs
- StrongNameKeyPair.cs
- ClientSideQueueItem.cs
- ScriptServiceAttribute.cs
- TextServicesContext.cs
- XPathNavigatorReader.cs
- RijndaelManaged.cs
- XmlAttributeCache.cs
- DialogResultConverter.cs
- _ShellExpression.cs
- Route.cs
- OAVariantLib.cs
- TextStore.cs
- NativeCompoundFileAPIs.cs
- HandlerBase.cs
- LocalBuilder.cs
- dbdatarecord.cs
- webproxy.cs
- ListView.cs
- ProviderMetadata.cs
- ControlIdConverter.cs
- PrivilegedConfigurationManager.cs
- BitmapScalingModeValidation.cs
- TCPClient.cs
- BaseTreeIterator.cs
- XmlValidatingReader.cs
- _ListenerAsyncResult.cs
- XslException.cs
- Stackframe.cs
- DataGridView.cs
- KnownBoxes.cs
- DefinitionUpdate.cs
- MinMaxParagraphWidth.cs
- CodeMemberEvent.cs
- Symbol.cs
- NameValuePermission.cs
- AutoGeneratedFieldProperties.cs
- RadioButtonFlatAdapter.cs
- ListViewItem.cs
- Mouse.cs
- PeerEndPoint.cs