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
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ScrollProviderWrapper.cs
- UpdateCommandGenerator.cs
- SchemaObjectWriter.cs
- NumberFormatInfo.cs
- Stacktrace.cs
- ComplexBindingPropertiesAttribute.cs
- StreamInfo.cs
- DataFormats.cs
- CompilationRelaxations.cs
- errorpatternmatcher.cs
- ServiceModelConfigurationSection.cs
- SelectionItemPattern.cs
- _SSPISessionCache.cs
- HttpException.cs
- HtmlTableRowCollection.cs
- ElementAction.cs
- OleDbParameter.cs
- FixedDocument.cs
- RegexGroupCollection.cs
- BitmapEffect.cs
- Gdiplus.cs
- ProfilePropertyMetadata.cs
- InvalidProgramException.cs
- ItemsPanelTemplate.cs
- TreeNodeCollectionEditor.cs
- AbstractDataSvcMapFileLoader.cs
- UrlAuthorizationModule.cs
- PriorityBinding.cs
- DeploymentSection.cs
- FontFamilyValueSerializer.cs
- Avt.cs
- Math.cs
- ListItemsPage.cs
- VerificationAttribute.cs
- XPathDescendantIterator.cs
- Vector3DAnimationBase.cs
- GZipStream.cs
- ByteConverter.cs
- SmtpLoginAuthenticationModule.cs
- InvokeHandlers.cs
- ClientFormsIdentity.cs
- X509RecipientCertificateClientElement.cs
- UInt64Converter.cs
- ThicknessKeyFrameCollection.cs
- SiteMapNodeCollection.cs
- entitydatasourceentitysetnameconverter.cs
- SimpleHandlerFactory.cs
- GeometryConverter.cs
- AddInActivator.cs
- CryptoApi.cs
- AudioFileOut.cs
- HiddenFieldPageStatePersister.cs
- LockCookie.cs
- AliasedExpr.cs
- VisualBrush.cs
- OptimisticConcurrencyException.cs
- TraceHwndHost.cs
- XmlEntity.cs
- MetadataArtifactLoaderCompositeFile.cs
- TcpStreams.cs
- DataGridViewAccessibleObject.cs
- OleDbErrorCollection.cs
- LabelEditEvent.cs
- PasswordPropertyTextAttribute.cs
- QueryableDataSource.cs
- PropertyChangeTracker.cs
- ManipulationPivot.cs
- MenuCommandService.cs
- XmlMembersMapping.cs
- SqlDataAdapter.cs
- UnsafeNativeMethodsCLR.cs
- DesignTimeTemplateParser.cs
- SwitchElementsCollection.cs
- GridViewDeleteEventArgs.cs
- Renderer.cs
- ChildTable.cs
- OrderByQueryOptionExpression.cs
- NoClickablePointException.cs
- MaterialGroup.cs
- QilValidationVisitor.cs
- StrongNameUtility.cs
- ToolTip.cs
- UriScheme.cs
- PropertyManager.cs
- XmlTextReaderImplHelpers.cs
- DebugHandleTracker.cs
- SelectionHighlightInfo.cs
- ProgressBarHighlightConverter.cs
- XmlNodeReader.cs
- Permission.cs
- TextTabProperties.cs
- FrugalMap.cs
- PrintingPermission.cs
- WasAdminWrapper.cs
- AssemblyName.cs
- DataGridViewLinkColumn.cs
- UnsafeNativeMethods.cs
- EncoderNLS.cs
- Parsers.cs