Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- Main.cs
- ChainOfDependencies.cs
- DictionaryBase.cs
- DataViewSetting.cs
- ScrollItemProviderWrapper.cs
- EUCJPEncoding.cs
- ContainerUtilities.cs
- PersonalizableAttribute.cs
- SettingsPropertyValueCollection.cs
- HtmlSelect.cs
- Int64Converter.cs
- HwndSubclass.cs
- AutomationElementCollection.cs
- ImageBrush.cs
- RtfControlWordInfo.cs
- PathSegmentCollection.cs
- SendingRequestEventArgs.cs
- SourceLineInfo.cs
- Rule.cs
- diagnosticsswitches.cs
- TargetInvocationException.cs
- OracleTransaction.cs
- EntityDataSourceDesignerHelper.cs
- StorageEntityContainerMapping.cs
- WorkflowHostingEndpoint.cs
- ExceptionCollection.cs
- SecurityPermission.cs
- NativeMethods.cs
- DiagnosticEventProvider.cs
- IdentityHolder.cs
- Common.cs
- UITypeEditors.cs
- XmlSchemaInclude.cs
- safelinkcollection.cs
- SessionMode.cs
- KnownBoxes.cs
- WebPartCatalogAddVerb.cs
- WebPartUtil.cs
- Ops.cs
- InheritanceUI.cs
- ConstraintStruct.cs
- Cursor.cs
- FontFaceLayoutInfo.cs
- SecurityDescriptor.cs
- ActivitySurrogate.cs
- FileDialogCustomPlace.cs
- CommandEventArgs.cs
- NamedObject.cs
- ColumnMap.cs
- BitmapEffectDrawing.cs
- LayoutSettings.cs
- TableLayout.cs
- CharacterString.cs
- TaskCanceledException.cs
- TypeLibraryHelper.cs
- ExtensionSurface.cs
- BufferedWebEventProvider.cs
- SmtpTransport.cs
- PageResolution.cs
- WindowsStatic.cs
- Screen.cs
- SkinBuilder.cs
- XmlSchemaSimpleTypeRestriction.cs
- ConsumerConnectionPoint.cs
- WorkflowRuntimeServiceElementCollection.cs
- ServiceOperationListItemList.cs
- PageClientProxyGenerator.cs
- SerializationFieldInfo.cs
- RuleSettings.cs
- Internal.cs
- XmlTextWriter.cs
- StoreAnnotationsMap.cs
- NavigateEvent.cs
- AttributeTable.cs
- DatePickerAutomationPeer.cs
- ContextMenuStrip.cs
- DataTemplateSelector.cs
- CodeCompileUnit.cs
- XmlJsonWriter.cs
- HashAlgorithm.cs
- Certificate.cs
- UpWmlMobileTextWriter.cs
- PropertiesTab.cs
- Convert.cs
- CommandHelper.cs
- RightsController.cs
- PersonalizationDictionary.cs
- DefaultProxySection.cs
- HierarchicalDataSourceControl.cs
- BufferModeSettings.cs
- OptionUsage.cs
- FileUtil.cs
- OciEnlistContext.cs
- ListenerElementsCollection.cs
- Attachment.cs
- WebControlsSection.cs
- DocumentPageTextView.cs
- DataObjectEventArgs.cs
- SmiRequestExecutor.cs
- StringToken.cs