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
- SqlExpander.cs
- DrawTreeNodeEventArgs.cs
- IndexedEnumerable.cs
- HashHelpers.cs
- UIElementIsland.cs
- mongolianshape.cs
- ListenerSessionConnection.cs
- WebPartZone.cs
- ObjRef.cs
- Geometry.cs
- ExpandableObjectConverter.cs
- _AuthenticationState.cs
- FormsAuthenticationUserCollection.cs
- CheckBox.cs
- RawAppCommandInputReport.cs
- ObjectTypeMapping.cs
- MobileSysDescriptionAttribute.cs
- LayoutEngine.cs
- SecurityTokenProvider.cs
- Site.cs
- MemberProjectionIndex.cs
- CaseStatementSlot.cs
- ReliableChannelListener.cs
- ExpressionQuoter.cs
- WasHostedComPlusFactory.cs
- VirtualDirectoryMapping.cs
- EffectiveValueEntry.cs
- TraceHandlerErrorFormatter.cs
- DataGridViewSelectedColumnCollection.cs
- QueryContinueDragEvent.cs
- Pkcs7Signer.cs
- BamlResourceDeserializer.cs
- XmlChildEnumerator.cs
- COM2ExtendedTypeConverter.cs
- NetworkInterface.cs
- MessageCredentialType.cs
- TypedReference.cs
- CodeMethodInvokeExpression.cs
- UnionQueryOperator.cs
- Permission.cs
- OdbcConnection.cs
- ContentControl.cs
- DetailsViewPageEventArgs.cs
- DataGridViewUtilities.cs
- Scripts.cs
- UInt32Storage.cs
- ComponentGuaranteesAttribute.cs
- XmlSchemaSimpleContentExtension.cs
- ImageMap.cs
- EventLogger.cs
- sapiproxy.cs
- ButtonBase.cs
- CustomAttributeBuilder.cs
- WebPartMovingEventArgs.cs
- IsolatedStoragePermission.cs
- FixUp.cs
- SubstitutionDesigner.cs
- Italic.cs
- SHA384Managed.cs
- WebPartEditorApplyVerb.cs
- SamlSubjectStatement.cs
- BuildProviderUtils.cs
- PagePropertiesChangingEventArgs.cs
- CommandTreeTypeHelper.cs
- VectorAnimationBase.cs
- OciLobLocator.cs
- RadioButton.cs
- CustomBindingCollectionElement.cs
- MatrixCamera.cs
- Converter.cs
- UserControlParser.cs
- DataRelationPropertyDescriptor.cs
- ServiceHostingEnvironment.cs
- StatusBarItemAutomationPeer.cs
- documentsequencetextpointer.cs
- DropShadowEffect.cs
- ChannelManagerBase.cs
- RestHandlerFactory.cs
- TableItemProviderWrapper.cs
- SafeFileMappingHandle.cs
- RoutedEventValueSerializer.cs
- XmlILConstructAnalyzer.cs
- ObjectStateManagerMetadata.cs
- ExternalCalls.cs
- DashStyles.cs
- SystemBrushes.cs
- LinqExpressionNormalizer.cs
- AsymmetricSignatureDeformatter.cs
- LinkLabelLinkClickedEvent.cs
- TransformedBitmap.cs
- QilName.cs
- Console.cs
- TableSectionStyle.cs
- BridgeDataReader.cs
- PagedDataSource.cs
- ClientFormsIdentity.cs
- PreviewPrintController.cs
- BaseDataBoundControl.cs
- CounterSampleCalculator.cs
- HttpCookie.cs