Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CompMod / System / Diagnostics / SourceFilter.cs / 1 / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- OverflowException.cs
- PathFigureCollection.cs
- WebResourceUtil.cs
- XpsS0ValidatingLoader.cs
- NativeMethods.cs
- FontEmbeddingManager.cs
- ConfigurationSectionCollection.cs
- DrawingContext.cs
- Helper.cs
- ObjectAnimationUsingKeyFrames.cs
- ToolStripComboBox.cs
- PageParserFilter.cs
- XmlSigningNodeWriter.cs
- DbParameterCollection.cs
- figurelength.cs
- Cursor.cs
- TableItemStyle.cs
- AtomServiceDocumentSerializer.cs
- ComponentManagerBroker.cs
- InstancePersistence.cs
- SoapEnumAttribute.cs
- AsymmetricSignatureFormatter.cs
- UnknownWrapper.cs
- IgnoreFlushAndCloseStream.cs
- FormsAuthenticationConfiguration.cs
- ToolStripItemTextRenderEventArgs.cs
- BinaryMethodMessage.cs
- ConcurrentQueue.cs
- Int64KeyFrameCollection.cs
- Constants.cs
- AssemblyNameEqualityComparer.cs
- ITextView.cs
- _Semaphore.cs
- MultiPropertyDescriptorGridEntry.cs
- WasNotInstalledException.cs
- ItemCheckedEvent.cs
- DecoratedNameAttribute.cs
- SharedDp.cs
- SchemaComplexType.cs
- invalidudtexception.cs
- DoubleAnimationBase.cs
- ArrayTypeMismatchException.cs
- ClientTarget.cs
- ArgumentDesigner.xaml.cs
- TemplatePropertyEntry.cs
- TableProviderWrapper.cs
- ManipulationPivot.cs
- RelatedView.cs
- EventMappingSettingsCollection.cs
- HandledEventArgs.cs
- HelpKeywordAttribute.cs
- CompilationPass2Task.cs
- ElementHost.cs
- SamlAttributeStatement.cs
- XmlReader.cs
- ItemCheckEvent.cs
- PenThreadPool.cs
- SelectedDatesCollection.cs
- CompensatableTransactionScopeActivityDesigner.cs
- DirectionalLight.cs
- DataBindingCollectionConverter.cs
- _AuthenticationState.cs
- SynchronizationLockException.cs
- Asn1IntegerConverter.cs
- CompositeDataBoundControl.cs
- FrameworkContextData.cs
- AbsoluteQuery.cs
- BinaryParser.cs
- FixedDSBuilder.cs
- WebPartEditorOkVerb.cs
- GenerateScriptTypeAttribute.cs
- ConfigXmlComment.cs
- PagesChangedEventArgs.cs
- PersonalizationState.cs
- Win32Native.cs
- WsatConfiguration.cs
- OleDbDataReader.cs
- fixedPageContentExtractor.cs
- FontWeights.cs
- MenuEventArgs.cs
- SqlError.cs
- GlyphsSerializer.cs
- ValueExpressions.cs
- BrowserCapabilitiesFactory35.cs
- ProcessRequestArgs.cs
- HealthMonitoringSection.cs
- StickyNoteAnnotations.cs
- BypassElementCollection.cs
- PenCursorManager.cs
- Fault.cs
- TextStore.cs
- EventArgs.cs
- BaseCollection.cs
- DataControlLinkButton.cs
- CalculatedColumn.cs
- PhysicalOps.cs
- Message.cs
- ReaderWriterLock.cs
- Font.cs
- SoapSchemaExporter.cs