Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- WindowsTokenRoleProvider.cs
- ToolStripItemRenderEventArgs.cs
- BamlRecordWriter.cs
- TemplatePagerField.cs
- XmlWriter.cs
- AffineTransform3D.cs
- TreeNodeMouseHoverEvent.cs
- SelectionUIService.cs
- ValidatedControlConverter.cs
- HScrollBar.cs
- GestureRecognizer.cs
- TTSEvent.cs
- ReferentialConstraintRoleElement.cs
- GraphicsPathIterator.cs
- ResourceExpressionBuilder.cs
- HttpCachePolicyElement.cs
- ToggleButtonAutomationPeer.cs
- InheritanceUI.cs
- SrgsSubset.cs
- StaticExtensionConverter.cs
- TypeConverterAttribute.cs
- DocumentPageTextView.cs
- Permission.cs
- TypedOperationInfo.cs
- ContextMenuStripGroupCollection.cs
- SignerInfo.cs
- CodeLinePragma.cs
- DesignerSerializerAttribute.cs
- SoapInteropTypes.cs
- TreeNodeBindingCollection.cs
- CompilerGeneratedAttribute.cs
- XmlSerializer.cs
- UserControl.cs
- ApplicationException.cs
- ConnectionProviderAttribute.cs
- CriticalHandle.cs
- ReflectionPermission.cs
- RepeaterItemCollection.cs
- HtmlInputReset.cs
- SoapEnumAttribute.cs
- ActivationArguments.cs
- FontSource.cs
- ContainerControl.cs
- ParameterModifier.cs
- CultureInfoConverter.cs
- ApplicationServiceManager.cs
- WindowsEditBoxRange.cs
- RegisteredExpandoAttribute.cs
- FixedSOMPageElement.cs
- ListChunk.cs
- SqlBulkCopyColumnMappingCollection.cs
- ExtendedTransformFactory.cs
- OleDbInfoMessageEvent.cs
- PlanCompiler.cs
- SecurityPermission.cs
- RunWorkerCompletedEventArgs.cs
- SharedConnectionWorkflowTransactionService.cs
- StrokeIntersection.cs
- SqlLiftIndependentRowExpressions.cs
- BitmapEffectDrawingContextState.cs
- TextViewDesigner.cs
- ExpressionPrinter.cs
- XPathNodeInfoAtom.cs
- GrammarBuilderWildcard.cs
- Geometry3D.cs
- MonitoringDescriptionAttribute.cs
- EmptyReadOnlyDictionaryInternal.cs
- PriorityBindingExpression.cs
- ShapeTypeface.cs
- EntryPointNotFoundException.cs
- ConditionBrowserDialog.cs
- PageStatePersister.cs
- DbProviderSpecificTypePropertyAttribute.cs
- LinqDataSourceHelper.cs
- BaseDataList.cs
- _SpnDictionary.cs
- SystemEvents.cs
- Model3DGroup.cs
- SwitchElementsCollection.cs
- GetWinFXPath.cs
- FaultConverter.cs
- XPathExpr.cs
- ConfigurationValidatorBase.cs
- BindingSource.cs
- WinFormsUtils.cs
- InvalidProgramException.cs
- DataGridViewRowHeaderCell.cs
- AccessViolationException.cs
- PageAsyncTask.cs
- ComboBoxRenderer.cs
- QueryInterceptorAttribute.cs
- MailBnfHelper.cs
- CreationContext.cs
- BezierSegment.cs
- ObjectDataSourceMethodEventArgs.cs
- WindowsToolbarItemAsMenuItem.cs
- ParseChildrenAsPropertiesAttribute.cs
- DebugView.cs
- Encoding.cs
- TransformConverter.cs