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
- WebPartConnectionsConnectVerb.cs
- SqlDataSourceStatusEventArgs.cs
- ResourcePermissionBaseEntry.cs
- DropTarget.cs
- SmtpSection.cs
- StyleXamlTreeBuilder.cs
- ListViewPagedDataSource.cs
- DefaultMergeHelper.cs
- DBCSCodePageEncoding.cs
- ProcessHostConfigUtils.cs
- AlphabeticalEnumConverter.cs
- DataBindingCollectionConverter.cs
- DynamicDocumentPaginator.cs
- RowUpdatingEventArgs.cs
- MsmqReceiveHelper.cs
- MemoryMappedView.cs
- SqlDataSourceCommandEventArgs.cs
- GrammarBuilderRuleRef.cs
- ObjectDataSourceDisposingEventArgs.cs
- BookmarkResumptionRecord.cs
- PlatformCulture.cs
- XmlHierarchicalDataSourceView.cs
- ScriptResourceMapping.cs
- CodeCommentStatementCollection.cs
- HwndMouseInputProvider.cs
- LogPolicy.cs
- ThreadExceptionDialog.cs
- NotifyInputEventArgs.cs
- DebugView.cs
- PrintDialogException.cs
- HelpInfo.cs
- TextEditorContextMenu.cs
- HttpResponseInternalWrapper.cs
- HandleTable.cs
- SecurityHelper.cs
- VisualStyleInformation.cs
- UIElementCollection.cs
- SchemaImporterExtensionElement.cs
- XmlTypeAttribute.cs
- AdvancedBindingEditor.cs
- ResourceReferenceExpressionConverter.cs
- UnaryOperationBinder.cs
- KeyValuePairs.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- XappLauncher.cs
- Label.cs
- BuildResult.cs
- JoinTreeSlot.cs
- RegexMatch.cs
- NameValueSectionHandler.cs
- Line.cs
- SafeNativeMethodsMilCoreApi.cs
- UmAlQuraCalendar.cs
- HtmlElement.cs
- CacheDependency.cs
- SpeakInfo.cs
- ThreadStartException.cs
- BinaryReader.cs
- FontDialog.cs
- RegexStringValidator.cs
- TraceListener.cs
- AnnotationMap.cs
- NameValueCollection.cs
- InvalidOperationException.cs
- DynamicActionMessageFilter.cs
- TrustManager.cs
- RelationshipEndCollection.cs
- HtmlToClrEventProxy.cs
- PointCollection.cs
- TransactionScope.cs
- _ConnectStream.cs
- EnumUnknown.cs
- ByteStack.cs
- DetailsViewDeleteEventArgs.cs
- RawStylusInput.cs
- HostProtectionException.cs
- DataList.cs
- NetworkStream.cs
- Security.cs
- IPEndPoint.cs
- SharedDp.cs
- UnsafeNativeMethodsTablet.cs
- CodeDOMUtility.cs
- BooleanExpr.cs
- CommandConverter.cs
- HuffmanTree.cs
- KeyManager.cs
- DataRowView.cs
- TableColumn.cs
- PeerNearMe.cs
- TextViewDesigner.cs
- SoapElementAttribute.cs
- Int16.cs
- GridViewColumnHeader.cs
- LineUtil.cs
- DialogResultConverter.cs
- AutomationTextAttribute.cs
- WebPartConnection.cs
- COM2TypeInfoProcessor.cs
- XmlAutoDetectWriter.cs