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
- MobilePage.cs
- XmlObjectSerializerWriteContext.cs
- HMACRIPEMD160.cs
- _AutoWebProxyScriptWrapper.cs
- FileChangesMonitor.cs
- IsolatedStorageFile.cs
- securitycriticaldataformultiplegetandset.cs
- CompilationSection.cs
- RelatedPropertyManager.cs
- TransformFinalBlockRequest.cs
- Stroke2.cs
- UiaCoreTypesApi.cs
- CompilerState.cs
- FilteredDataSetHelper.cs
- MappableObjectManager.cs
- CodeAssignStatement.cs
- PrintController.cs
- IncrementalCompileAnalyzer.cs
- HtmlControl.cs
- SafeViewOfFileHandle.cs
- StylusPointPropertyInfoDefaults.cs
- ToolStripPanelRow.cs
- CodeRegionDirective.cs
- _ConnectOverlappedAsyncResult.cs
- FtpWebRequest.cs
- TriState.cs
- RegexStringValidatorAttribute.cs
- XmlDownloadManager.cs
- SafeWaitHandle.cs
- ObfuscationAttribute.cs
- SortFieldComparer.cs
- BamlLocalizableResource.cs
- SqlUserDefinedAggregateAttribute.cs
- ProxyWebPart.cs
- ObjectList.cs
- TextTreeDeleteContentUndoUnit.cs
- DesignerSerializationOptionsAttribute.cs
- WebPartEditorOkVerb.cs
- Helpers.cs
- XmlTextEncoder.cs
- SystemPens.cs
- XmlDocumentSurrogate.cs
- CodeMemberField.cs
- SetterBaseCollection.cs
- filewebresponse.cs
- LabelAutomationPeer.cs
- AnnotationHighlightLayer.cs
- ReferentialConstraint.cs
- QilScopedVisitor.cs
- HttpWriter.cs
- ObjectSpanRewriter.cs
- SinglePageViewer.cs
- WindowsListView.cs
- FileDialog.cs
- TimerElapsedEvenArgs.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- FontResourceCache.cs
- XmlValidatingReader.cs
- AutomationPropertyInfo.cs
- DataGridViewCheckBoxCell.cs
- UseAttributeSetsAction.cs
- CryptoKeySecurity.cs
- ParameterToken.cs
- ObjectReferenceStack.cs
- ScalarRestriction.cs
- Configuration.cs
- InstanceKeyView.cs
- Help.cs
- DataServiceExpressionVisitor.cs
- CssClassPropertyAttribute.cs
- MediaTimeline.cs
- PagedDataSource.cs
- MoveSizeWinEventHandler.cs
- SEHException.cs
- FormsAuthenticationUserCollection.cs
- XmlSchemaAttribute.cs
- WebBrowserUriTypeConverter.cs
- PackUriHelper.cs
- EventHandlersStore.cs
- WebPartMenuStyle.cs
- UnionExpr.cs
- MainMenu.cs
- Update.cs
- ByteStack.cs
- RectangleGeometry.cs
- DataControlCommands.cs
- FunctionDetailsReader.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- OverflowException.cs
- CodeSnippetCompileUnit.cs
- MDIWindowDialog.cs
- MediaElementAutomationPeer.cs
- ContextDataSource.cs
- PathSegment.cs
- StickyNoteHelper.cs
- EnumMember.cs
- VisualBrush.cs
- VectorCollectionConverter.cs
- OracleColumn.cs
- RegexTree.cs