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
- Avt.cs
- DataAccessException.cs
- Int32AnimationUsingKeyFrames.cs
- RemoteWebConfigurationHostServer.cs
- FastEncoderWindow.cs
- QueryStringConverter.cs
- AsyncCompletedEventArgs.cs
- StoreItemCollection.Loader.cs
- SessionIDManager.cs
- StringConverter.cs
- ZoneIdentityPermission.cs
- EdmRelationshipRoleAttribute.cs
- WindowsSysHeader.cs
- DataGridViewColumnStateChangedEventArgs.cs
- TwoPhaseCommit.cs
- GeneratedCodeAttribute.cs
- RNGCryptoServiceProvider.cs
- VersionedStream.cs
- PartitionResolver.cs
- ZipIOCentralDirectoryFileHeader.cs
- CFGGrammar.cs
- DrawingState.cs
- path.cs
- Int32CAMarshaler.cs
- CompressionTransform.cs
- SqlCrossApplyToCrossJoin.cs
- GroupItem.cs
- MissingFieldException.cs
- SessionStateContainer.cs
- ExpressionBindingCollection.cs
- XmlSignatureManifest.cs
- basemetadatamappingvisitor.cs
- KeyboardNavigation.cs
- PerformanceCounterPermissionEntry.cs
- MultipleCopiesCollection.cs
- DbConnectionClosed.cs
- BackgroundFormatInfo.cs
- DoubleAnimationUsingPath.cs
- TextLineBreak.cs
- DataGridViewComponentPropertyGridSite.cs
- DateTimeFormatInfoScanner.cs
- IListConverters.cs
- XPathDocument.cs
- PageParser.cs
- DSASignatureFormatter.cs
- QilScopedVisitor.cs
- PageThemeBuildProvider.cs
- FixedTextPointer.cs
- MonthCalendar.cs
- ListCollectionView.cs
- ReadOnlyPropertyMetadata.cs
- SettingsPropertyWrongTypeException.cs
- KeyBinding.cs
- UnsettableComboBox.cs
- storepermissionattribute.cs
- ScriptReferenceBase.cs
- DynamicExpression.cs
- XslTransform.cs
- CustomWebEventKey.cs
- BindingBase.cs
- SmtpCommands.cs
- SharedDp.cs
- WorkingDirectoryEditor.cs
- SchemaComplexType.cs
- TextSelectionProcessor.cs
- ScrollChangedEventArgs.cs
- OleDbDataReader.cs
- RowToParametersTransformer.cs
- CharUnicodeInfo.cs
- controlskin.cs
- DocumentEventArgs.cs
- VerificationException.cs
- ProviderConnectionPoint.cs
- FileVersion.cs
- DropShadowBitmapEffect.cs
- EpmAttributeNameBuilder.cs
- RectAnimationBase.cs
- UInt16Storage.cs
- Filter.cs
- DebugController.cs
- SettingsPropertyWrongTypeException.cs
- _NetRes.cs
- WebPartVerb.cs
- StickyNote.cs
- MasterPageBuildProvider.cs
- Frame.cs
- ImageMap.cs
- PageWrapper.cs
- EndPoint.cs
- WebWorkflowRole.cs
- CaseStatementSlot.cs
- XPathSelectionIterator.cs
- Section.cs
- StateMachineExecutionState.cs
- StringDictionary.cs
- FixedLineResult.cs
- _FixedSizeReader.cs
- CompatibleComparer.cs
- ReflectionTypeLoadException.cs
- CreateUserErrorEventArgs.cs