Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CompMod / System / Diagnostics / SourceFilter.cs / 1305376 / SourceFilter.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- using System; using System.Collections; namespace System.Diagnostics { public class SourceFilter : TraceFilter { private string src; public SourceFilter(string source) { Source = source; } public override bool ShouldTrace(TraceEventCache cache, string source, TraceEventType eventType, int id, string formatOrMessage, object[] args, object data1, object[] data) { if (source == null) throw new ArgumentNullException("source"); return String.Equals(src, source); } public String Source { get { return src; } set { if (value == null) throw new ArgumentNullException("source"); src = 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
- DesignerActionVerbList.cs
- DispatchWrapper.cs
- BamlLocalizabilityResolver.cs
- DropSource.cs
- WebBrowserNavigatedEventHandler.cs
- StorageAssociationTypeMapping.cs
- Lease.cs
- HttpContext.cs
- ProcessInputEventArgs.cs
- DataSet.cs
- CTreeGenerator.cs
- ControlCachePolicy.cs
- ConnectionManagementSection.cs
- wmiprovider.cs
- RawStylusInputCustomDataList.cs
- TextServicesHost.cs
- ImageFormatConverter.cs
- MouseBinding.cs
- SafeCoTaskMem.cs
- LoggedException.cs
- ExpressionList.cs
- Addressing.cs
- _ScatterGatherBuffers.cs
- WebPartManager.cs
- SafeEventLogWriteHandle.cs
- WeakReference.cs
- InOutArgument.cs
- ColumnReorderedEventArgs.cs
- ServiceContractViewControl.cs
- BitVector32.cs
- SafeSystemMetrics.cs
- MobileContainerDesigner.cs
- EnvelopeVersion.cs
- DependencyPropertyValueSerializer.cs
- CallSiteBinder.cs
- ListManagerBindingsCollection.cs
- PropertyToken.cs
- Int64Storage.cs
- ProcessStartInfo.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- TextRangeEdit.cs
- Geometry3D.cs
- DiscreteKeyFrames.cs
- EventLogPermissionEntryCollection.cs
- ObjectViewListener.cs
- ColumnHeaderConverter.cs
- CodeMethodInvokeExpression.cs
- XPathDocumentNavigator.cs
- OracleTimeSpan.cs
- Enlistment.cs
- FrameworkContentElement.cs
- SafeNativeMethods.cs
- KeysConverter.cs
- MaterialGroup.cs
- ActivityValidator.cs
- SafeFileMapViewHandle.cs
- AdPostCacheSubstitution.cs
- Storyboard.cs
- MenuItem.cs
- OdbcException.cs
- ListContractAdapter.cs
- SchemaElement.cs
- PathSegment.cs
- Binding.cs
- ScaleTransform.cs
- ExecutedRoutedEventArgs.cs
- InternalBufferOverflowException.cs
- DragEventArgs.cs
- ObservableCollection.cs
- VScrollBar.cs
- RegexWorker.cs
- HwndPanningFeedback.cs
- MessageBox.cs
- SoapObjectReader.cs
- MostlySingletonList.cs
- RegisteredExpandoAttribute.cs
- TextDecoration.cs
- PersonalizationProviderHelper.cs
- WebServicesSection.cs
- DockingAttribute.cs
- FontUnitConverter.cs
- TypeConverterHelper.cs
- Int32Converter.cs
- XmlLanguageConverter.cs
- MessageOperationFormatter.cs
- MenuStrip.cs
- QilInvoke.cs
- Application.cs
- HttpListener.cs
- glyphs.cs
- InputMethodStateTypeInfo.cs
- XsltArgumentList.cs
- XomlCompilerParameters.cs
- XmlObjectSerializerReadContextComplex.cs
- DataBoundLiteralControl.cs
- tooltip.cs
- WebPartManagerInternals.cs
- DynamicILGenerator.cs
- SendingRequestEventArgs.cs
- SizeAnimation.cs