Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / Diagnostics / SeverityFilter.cs / 1305376 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XPathArrayIterator.cs
- ValidationPropertyAttribute.cs
- WorkflowRuntimeServiceElement.cs
- BaseResourcesBuildProvider.cs
- TableHeaderCell.cs
- StackBuilderSink.cs
- PropertySet.cs
- TypeDescriptor.cs
- ActiveXContainer.cs
- figurelength.cs
- OdbcConnectionOpen.cs
- SocketInformation.cs
- Menu.cs
- InputMethod.cs
- DesignerProperties.cs
- ColorBlend.cs
- MouseButtonEventArgs.cs
- Soap.cs
- httpapplicationstate.cs
- AccessKeyManager.cs
- GridViewColumn.cs
- SplitterEvent.cs
- WmlTextBoxAdapter.cs
- InvalidDataException.cs
- AsyncResult.cs
- Parser.cs
- NegationPusher.cs
- WindowsSpinner.cs
- KoreanLunisolarCalendar.cs
- HttpConfigurationContext.cs
- HtmlTableCell.cs
- PresentationSource.cs
- _OSSOCK.cs
- ListBox.cs
- OlePropertyStructs.cs
- Properties.cs
- SimpleLine.cs
- ServerIdentity.cs
- HttpCachePolicy.cs
- DataGridViewToolTip.cs
- SoapHttpTransportImporter.cs
- ToolStripItemDataObject.cs
- AQNBuilder.cs
- DbConnectionFactory.cs
- RSAPKCS1KeyExchangeFormatter.cs
- ToolStripDropDown.cs
- NavigationEventArgs.cs
- BlurBitmapEffect.cs
- DataGridViewCellStyle.cs
- Byte.cs
- X509LogoTypeExtension.cs
- ConnectionPoolManager.cs
- IISMapPath.cs
- CounterSetInstance.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- ExceptionRoutedEventArgs.cs
- LiteralSubsegment.cs
- TimeSpanStorage.cs
- ParentControlDesigner.cs
- LinkConverter.cs
- FlowDocumentReaderAutomationPeer.cs
- TextProperties.cs
- GACIdentityPermission.cs
- XmlWrappingReader.cs
- EventArgs.cs
- WindowsUserNameSecurityTokenAuthenticator.cs
- UrlMappingsModule.cs
- StrokeSerializer.cs
- XmlCompatibilityReader.cs
- DataRowComparer.cs
- StringCollection.cs
- InvokeBase.cs
- SQLBinary.cs
- CompoundFileStorageReference.cs
- DictionaryMarkupSerializer.cs
- PrintingPermission.cs
- AutoGeneratedFieldProperties.cs
- ReflectTypeDescriptionProvider.cs
- PointCollectionValueSerializer.cs
- RenderCapability.cs
- GeometryHitTestResult.cs
- OptimalTextSource.cs
- FormsAuthentication.cs
- NotSupportedException.cs
- UInt32.cs
- BasicKeyConstraint.cs
- xml.cs
- XmlUtil.cs
- ObjectStateFormatter.cs
- SortExpressionBuilder.cs
- ComponentConverter.cs
- AttributeEmitter.cs
- HotSpotCollection.cs
- JavaScriptString.cs
- SoapFaultCodes.cs
- ExpressionPrinter.cs
- DEREncoding.cs
- AssociationTypeEmitter.cs
- TableProviderWrapper.cs
- WebZone.cs