Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- Console.cs
- GroupStyle.cs
- ListControlConvertEventArgs.cs
- SessionIDManager.cs
- DataSourceSelectArguments.cs
- BindingCollection.cs
- ProfileInfo.cs
- DataControlPagerLinkButton.cs
- HttpDictionary.cs
- DrawingImage.cs
- RubberbandSelector.cs
- ValueProviderWrapper.cs
- WebControl.cs
- CounterCreationDataConverter.cs
- NativeMethods.cs
- ConnectionStringSettings.cs
- tooltip.cs
- ToolStripHighContrastRenderer.cs
- LocatorGroup.cs
- SequenceDesigner.cs
- RelatedImageListAttribute.cs
- DataView.cs
- InputScopeManager.cs
- MSAAEventDispatcher.cs
- HandlerBase.cs
- WebServiceHost.cs
- ToolStripContentPanelRenderEventArgs.cs
- BroadcastEventHelper.cs
- CodeGenerationManager.cs
- WebControlAdapter.cs
- ClockController.cs
- PropertyKey.cs
- UrlAuthFailedErrorFormatter.cs
- OutputScope.cs
- DynamicPropertyHolder.cs
- ObjectQueryExecutionPlan.cs
- SSmlParser.cs
- AbstractSvcMapFileLoader.cs
- InputReportEventArgs.cs
- XamlInt32CollectionSerializer.cs
- ValidationErrorEventArgs.cs
- SetStoryboardSpeedRatio.cs
- PagedDataSource.cs
- OperationCanceledException.cs
- CodeDOMProvider.cs
- SqlDataSourceCache.cs
- AddingNewEventArgs.cs
- Collection.cs
- TabControl.cs
- FilterableData.cs
- SecurityContext.cs
- HeaderElement.cs
- DataGridViewCellCollection.cs
- HTTPRemotingHandler.cs
- ViewBox.cs
- FileFormatException.cs
- DoubleKeyFrameCollection.cs
- ChainOfDependencies.cs
- basevalidator.cs
- TemplatedMailWebEventProvider.cs
- DSASignatureDeformatter.cs
- InputScope.cs
- DesignOnlyAttribute.cs
- TlsnegoTokenAuthenticator.cs
- X509SecurityToken.cs
- StringTraceRecord.cs
- CultureSpecificStringDictionary.cs
- ScrollViewer.cs
- StateMachineWorkflowInstance.cs
- ConnectionProviderAttribute.cs
- Expression.DebuggerProxy.cs
- DispatcherEventArgs.cs
- ToolboxComponentsCreatedEventArgs.cs
- WindowsFormsHostPropertyMap.cs
- InfoCardSymmetricAlgorithm.cs
- OpenTypeLayout.cs
- SqlDataSourceSummaryPanel.cs
- BevelBitmapEffect.cs
- NullExtension.cs
- ToolStripPanelRow.cs
- X509Certificate2.cs
- PersonalizationState.cs
- securestring.cs
- ConnectionDemuxer.cs
- UnsafeNativeMethods.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- PriorityItem.cs
- SerializationObjectManager.cs
- HMACMD5.cs
- RootBrowserWindowAutomationPeer.cs
- InputLanguageSource.cs
- HtmlWindowCollection.cs
- MouseWheelEventArgs.cs
- GuidelineCollection.cs
- CompilationSection.cs
- InvalidWMPVersionException.cs
- ToolStripRenderer.cs
- NameValueSectionHandler.cs
- SecUtil.cs
- SecurityKeyIdentifier.cs