Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CompMod / System / Diagnostics / SeverityFilter.cs / 1 / SeverityFilter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; namespace System.Diagnostics { public class EventTypeFilter : TraceFilter { private SourceLevels level; public EventTypeFilter(SourceLevels level) { this.level = level; } public override bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage, object[] args, object data1, object[] data) { return ((int) eventType & (int) level) != 0; } public SourceLevels EventType { get { return level; } set { level = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; namespace System.Diagnostics { public class EventTypeFilter : TraceFilter { private SourceLevels level; public EventTypeFilter(SourceLevels level) { this.level = level; } public override bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage, object[] args, object data1, object[] data) { return ((int) eventType & (int) level) != 0; } public SourceLevels EventType { get { return level; } set { level = value; } } } } // 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
- ConfigurationManagerHelper.cs
- TrackingServices.cs
- ShapingWorkspace.cs
- MachineKeyConverter.cs
- BooleanFunctions.cs
- BaseDataListPage.cs
- StructuredType.cs
- Point3DCollection.cs
- Font.cs
- UntrustedRecipientException.cs
- JpegBitmapEncoder.cs
- MetadataItem.cs
- BuildProviderCollection.cs
- XmlDictionary.cs
- MatrixKeyFrameCollection.cs
- StatusCommandUI.cs
- GenericTextProperties.cs
- ILGenerator.cs
- ObjectQuery.cs
- TypeUnloadedException.cs
- AVElementHelper.cs
- PaginationProgressEventArgs.cs
- DictionarySectionHandler.cs
- CombinedGeometry.cs
- OdbcError.cs
- TypeDescriptor.cs
- XPathAncestorQuery.cs
- ExceptionValidationRule.cs
- SmtpNegotiateAuthenticationModule.cs
- TextBounds.cs
- SmiEventSink_Default.cs
- WindowsNonControl.cs
- InputChannelBinder.cs
- DesignerView.xaml.cs
- WinFormsSecurity.cs
- DomainUpDown.cs
- SpAudioStreamWrapper.cs
- ScriptControl.cs
- PasswordTextContainer.cs
- OdbcDataAdapter.cs
- XMLSyntaxException.cs
- _ConnectOverlappedAsyncResult.cs
- StyleTypedPropertyAttribute.cs
- NetworkAddressChange.cs
- RemoteWebConfigurationHostStream.cs
- Tracer.cs
- FixedPageProcessor.cs
- ServicePointManager.cs
- RsaSecurityTokenParameters.cs
- IInstanceContextProvider.cs
- Object.cs
- SimpleBitVector32.cs
- PointValueSerializer.cs
- JapaneseLunisolarCalendar.cs
- CheckBoxRenderer.cs
- CreateUserErrorEventArgs.cs
- AddingNewEventArgs.cs
- Deflater.cs
- GenericRootAutomationPeer.cs
- initElementDictionary.cs
- FormatterServicesNoSerializableCheck.cs
- SqlRowUpdatedEvent.cs
- WebPartDisplayModeEventArgs.cs
- AtlasWeb.Designer.cs
- Bold.cs
- XmlSchemaComplexContent.cs
- ExpressionBuilderContext.cs
- CancelEventArgs.cs
- ContentHostHelper.cs
- EventManager.cs
- ToolboxCategoryItems.cs
- SafeSecurityHelper.cs
- GeneratedCodeAttribute.cs
- UserControlAutomationPeer.cs
- IncomingWebRequestContext.cs
- FieldNameLookup.cs
- MaskInputRejectedEventArgs.cs
- TableItemPatternIdentifiers.cs
- ProgressChangedEventArgs.cs
- ValidationEventArgs.cs
- _HTTPDateParse.cs
- ScrollBar.cs
- WebServiceData.cs
- CodeNamespaceCollection.cs
- TreeNodeCollection.cs
- Permission.cs
- ServiceOperationParameter.cs
- Point3DValueSerializer.cs
- ReversePositionQuery.cs
- RtfFormatStack.cs
- InvokePattern.cs
- ViewValidator.cs
- HtmlInputPassword.cs
- SystemPens.cs
- TypeToTreeConverter.cs
- ClientUtils.cs
- TreePrinter.cs
- AttributeData.cs
- StickyNote.cs
- XmlObjectSerializerWriteContextComplex.cs