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
- PropertyGroupDescription.cs
- DataGridViewCheckBoxColumn.cs
- SharedUtils.cs
- DataControlButton.cs
- FileRecordSequence.cs
- FunctionQuery.cs
- MILUtilities.cs
- BasicHttpSecurityMode.cs
- AssemblyEvidenceFactory.cs
- SpeakProgressEventArgs.cs
- TimersDescriptionAttribute.cs
- EntityViewGenerator.cs
- DataViewManager.cs
- DataTableReaderListener.cs
- HttpStreamXmlDictionaryWriter.cs
- XMLUtil.cs
- WebControlsSection.cs
- TextServicesContext.cs
- JapaneseLunisolarCalendar.cs
- PopOutPanel.cs
- MethodRental.cs
- DbSetClause.cs
- LambdaCompiler.Logical.cs
- CompositeFontInfo.cs
- XmlRawWriterWrapper.cs
- ListViewSortEventArgs.cs
- HiddenFieldPageStatePersister.cs
- StandardBindingElement.cs
- TextHidden.cs
- PreviewKeyDownEventArgs.cs
- IconBitmapDecoder.cs
- TextOnlyOutput.cs
- CallSiteOps.cs
- RadioButton.cs
- XhtmlConformanceSection.cs
- VisualBrush.cs
- ContentTypeSettingClientMessageFormatter.cs
- StickyNoteHelper.cs
- MessageDecoder.cs
- WebControlAdapter.cs
- OrCondition.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- GregorianCalendarHelper.cs
- MdiWindowListItemConverter.cs
- ParserStack.cs
- ColumnMapTranslator.cs
- X509CertificateValidator.cs
- VirtualizingPanel.cs
- Base64Decoder.cs
- CompoundFileStorageReference.cs
- PointAnimationUsingKeyFrames.cs
- Nullable.cs
- Application.cs
- Logging.cs
- HttpModulesSection.cs
- QuotedPrintableStream.cs
- TouchesOverProperty.cs
- ValidationHelper.cs
- ServiceInfoCollection.cs
- ExpressionVisitor.cs
- UriScheme.cs
- XComponentModel.cs
- CompositeTypefaceMetrics.cs
- AssemblyName.cs
- ClientSettingsStore.cs
- Types.cs
- SafeRegistryHandle.cs
- Version.cs
- ApplicationHost.cs
- Vector3DCollection.cs
- ApplicationSecurityInfo.cs
- SlipBehavior.cs
- X509WindowsSecurityToken.cs
- AuthorizationContext.cs
- TimeSpanStorage.cs
- Utils.cs
- X509UI.cs
- RayMeshGeometry3DHitTestResult.cs
- WebConfigurationManager.cs
- PointKeyFrameCollection.cs
- RoleService.cs
- TriState.cs
- MemoryPressure.cs
- Script.cs
- DbDataReader.cs
- NetCodeGroup.cs
- WebEventCodes.cs
- SqlNamer.cs
- ObjectCloneHelper.cs
- TemplateInstanceAttribute.cs
- XNodeNavigator.cs
- BaseProcessor.cs
- AnimationException.cs
- Point3DAnimationUsingKeyFrames.cs
- BindingsCollection.cs
- MSAAWinEventWrap.cs
- CodeDelegateCreateExpression.cs
- ReadWriteSpinLock.cs
- ExportFileRequest.cs
- PartManifestEntry.cs