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
- PostBackTrigger.cs
- Codec.cs
- BufferModesCollection.cs
- WpfMemberInvoker.cs
- StyleModeStack.cs
- ComUdtElementCollection.cs
- DefaultPropertyAttribute.cs
- SqlInternalConnection.cs
- Model3DCollection.cs
- SinglePageViewer.cs
- SoapAttributeOverrides.cs
- EntityContainerRelationshipSet.cs
- Vertex.cs
- ListBase.cs
- URLMembershipCondition.cs
- DateTimeConverter2.cs
- HTMLTagNameToTypeMapper.cs
- RelationshipEndMember.cs
- RegexWorker.cs
- AnnotationResourceChangedEventArgs.cs
- TimelineGroup.cs
- ViewEvent.cs
- ComponentResourceKeyConverter.cs
- SingleSelectRootGridEntry.cs
- DeferredElementTreeState.cs
- DES.cs
- ComContractElementCollection.cs
- DispatchRuntime.cs
- DependencyPropertyConverter.cs
- IsolatedStorage.cs
- PermissionSet.cs
- ImportCatalogPart.cs
- SessionPageStatePersister.cs
- InfoCardKeyedHashAlgorithm.cs
- TypeContext.cs
- PerformanceCounter.cs
- Int32EqualityComparer.cs
- DataBindingExpressionBuilder.cs
- XmlHierarchicalEnumerable.cs
- Polyline.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- PointLight.cs
- ZipIORawDataFileBlock.cs
- HitTestWithPointDrawingContextWalker.cs
- MultiPageTextView.cs
- GridViewCommandEventArgs.cs
- DateTimeUtil.cs
- RawStylusActions.cs
- AttachedPropertyMethodSelector.cs
- WeakHashtable.cs
- Encoder.cs
- EventLogTraceListener.cs
- COM2TypeInfoProcessor.cs
- DocumentScope.cs
- FeatureSupport.cs
- XsltLibrary.cs
- LogicalExpr.cs
- FunctionQuery.cs
- NamespaceList.cs
- XPathSelectionIterator.cs
- JsonEnumDataContract.cs
- CommandLibraryHelper.cs
- TransactionManager.cs
- ClassHandlersStore.cs
- RegexCompilationInfo.cs
- XmlILOptimizerVisitor.cs
- FilteredSchemaElementLookUpTable.cs
- MenuAdapter.cs
- ButtonRenderer.cs
- FormViewDeleteEventArgs.cs
- SerializationTrace.cs
- DataGridRelationshipRow.cs
- QueryCacheManager.cs
- EventMappingSettingsCollection.cs
- NameValueCollection.cs
- InteropExecutor.cs
- XmlElementAttribute.cs
- AuthenticatingEventArgs.cs
- Misc.cs
- HttpRequestContext.cs
- MimeMapping.cs
- RadioButton.cs
- RoutedEventConverter.cs
- HttpWriter.cs
- MarkupCompilePass2.cs
- TreeNodeClickEventArgs.cs
- FileDialogPermission.cs
- SHA384Cng.cs
- ActivationServices.cs
- XNodeValidator.cs
- EntitySqlQueryState.cs
- BoolExpr.cs
- HierarchicalDataSourceConverter.cs
- MessageEncodingBindingElement.cs
- StreamResourceInfo.cs
- MimeWriter.cs
- ProcessProtocolHandler.cs
- DetailsViewUpdateEventArgs.cs
- MapPathBasedVirtualPathProvider.cs
- IListConverters.cs