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
- OleTxTransaction.cs
- FacetEnabledSchemaElement.cs
- SHA1CryptoServiceProvider.cs
- CompModHelpers.cs
- ListChunk.cs
- WsrmFault.cs
- EndpointAddress.cs
- MemoryMappedFile.cs
- MachineKeyConverter.cs
- DataRowExtensions.cs
- WriteableBitmap.cs
- LocatorPartList.cs
- DataGridAddNewRow.cs
- XmlDataSourceView.cs
- Publisher.cs
- TraceHwndHost.cs
- XPathAncestorIterator.cs
- DataError.cs
- IncrementalCompileAnalyzer.cs
- xdrvalidator.cs
- EmptyEnumerable.cs
- webeventbuffer.cs
- SmtpAuthenticationManager.cs
- SafeNativeMethods.cs
- RotationValidation.cs
- dsa.cs
- HttpFileCollection.cs
- ComponentResourceKeyConverter.cs
- TextServicesManager.cs
- ProgressChangedEventArgs.cs
- FixedDocument.cs
- CaseStatementSlot.cs
- basecomparevalidator.cs
- HttpCookie.cs
- SqlCaseSimplifier.cs
- TraversalRequest.cs
- XmlFileEditor.cs
- Sql8ExpressionRewriter.cs
- LogSwitch.cs
- Translator.cs
- DbgCompiler.cs
- Part.cs
- SamlDoNotCacheCondition.cs
- ByteStorage.cs
- OleDbInfoMessageEvent.cs
- AspCompat.cs
- ScriptingProfileServiceSection.cs
- ExpressionBinding.cs
- InheritanceContextChangedEventManager.cs
- FileLogRecordEnumerator.cs
- CodeAttributeDeclarationCollection.cs
- RequestCache.cs
- XmlParserContext.cs
- GlyphElement.cs
- PeerApplicationLaunchInfo.cs
- InputLangChangeRequestEvent.cs
- SoapFault.cs
- SqlCommandAsyncResult.cs
- DataGridViewCellCollection.cs
- ControlDesigner.cs
- MonitorWrapper.cs
- ChtmlCommandAdapter.cs
- PixelFormat.cs
- HttpServerVarsCollection.cs
- HierarchicalDataBoundControlAdapter.cs
- StringSorter.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ApplyTemplatesAction.cs
- XamlGridLengthSerializer.cs
- GridViewDeletedEventArgs.cs
- PrintPreviewGraphics.cs
- IsolatedStorageFilePermission.cs
- DispatcherObject.cs
- TextModifierScope.cs
- SettingsAttributes.cs
- printdlgexmarshaler.cs
- FactoryGenerator.cs
- WebControl.cs
- DesignTimeParseData.cs
- CachedBitmap.cs
- DynamicActivityTypeDescriptor.cs
- XpsLiterals.cs
- WebSysDescriptionAttribute.cs
- XamlStream.cs
- ObjectNavigationPropertyMapping.cs
- QueryAccessibilityHelpEvent.cs
- InheritablePropertyChangeInfo.cs
- ReferentialConstraint.cs
- XamlTypeMapper.cs
- XmlSchemaObject.cs
- MaskedTextProvider.cs
- IdSpace.cs
- XmlWriterTraceListener.cs
- serverconfig.cs
- ProjectionPathSegment.cs
- ProtocolsInstallComponent.cs
- FirstMatchCodeGroup.cs
- InvalidContentTypeException.cs
- DataControlField.cs
- Axis.cs