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
- MultipartIdentifier.cs
- UnsafeNativeMethods.cs
- Color.cs
- DataGridViewToolTip.cs
- WindowsGraphicsWrapper.cs
- ArraySortHelper.cs
- ObjectToken.cs
- FlowDocumentScrollViewer.cs
- LayoutEditorPart.cs
- DependencyStoreSurrogate.cs
- TitleStyle.cs
- ItemList.cs
- OuterGlowBitmapEffect.cs
- DiscoveryClientProtocol.cs
- DataSysAttribute.cs
- ScriptHandlerFactory.cs
- MaskInputRejectedEventArgs.cs
- RotationValidation.cs
- SecurityElement.cs
- METAHEADER.cs
- LogicalTreeHelper.cs
- BitmapImage.cs
- EntityClassGenerator.cs
- BuildProvider.cs
- CompilationSection.cs
- DataGridViewCellPaintingEventArgs.cs
- CounterSample.cs
- FieldBuilder.cs
- RemotingAttributes.cs
- RectangleConverter.cs
- PageRanges.cs
- MouseWheelEventArgs.cs
- WmlImageAdapter.cs
- NumberFormatter.cs
- HashRepartitionEnumerator.cs
- DurableEnlistmentState.cs
- WebRequestModulesSection.cs
- TypedElement.cs
- ProxyWebPartManager.cs
- FormCollection.cs
- ProjectionPath.cs
- Rotation3DKeyFrameCollection.cs
- RunWorkerCompletedEventArgs.cs
- TraversalRequest.cs
- MaxSessionCountExceededException.cs
- Table.cs
- WebHeaderCollection.cs
- ColumnHeader.cs
- EmbeddedObject.cs
- TableRowCollection.cs
- HwndSourceKeyboardInputSite.cs
- GridViewCommandEventArgs.cs
- TraceListener.cs
- EntityTypeEmitter.cs
- ContentFilePart.cs
- PolygonHotSpot.cs
- FileFormatException.cs
- WSTrustDec2005.cs
- KeyPressEvent.cs
- RawKeyboardInputReport.cs
- ClientUtils.cs
- XsltContext.cs
- Keywords.cs
- DrawTreeNodeEventArgs.cs
- CompiledQueryCacheKey.cs
- WebBrowserNavigatedEventHandler.cs
- BoolExpressionVisitors.cs
- XamlFxTrace.cs
- XmlSchemaSimpleType.cs
- ClientRuntimeConfig.cs
- DiscriminatorMap.cs
- EncoderReplacementFallback.cs
- WebPartConnectionsEventArgs.cs
- SelectManyQueryOperator.cs
- Section.cs
- ContractDescription.cs
- SqlTriggerAttribute.cs
- KeyValuePair.cs
- ApplyTemplatesAction.cs
- FormViewUpdatedEventArgs.cs
- Tile.cs
- TextEditorTyping.cs
- EmptyStringExpandableObjectConverter.cs
- OrderedDictionary.cs
- DefaultParameterValueAttribute.cs
- TypeForwardedToAttribute.cs
- TimeSpanConverter.cs
- EndSelectCardRequest.cs
- StylusPointProperties.cs
- RtType.cs
- ColorContextHelper.cs
- PartitionerQueryOperator.cs
- ListBox.cs
- WebAdminConfigurationHelper.cs
- UidManager.cs
- ProxyWebPartManager.cs
- FixedTextContainer.cs
- GridViewSortEventArgs.cs
- XXXInfos.cs
- DecoderReplacementFallback.cs