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
- MultiView.cs
- SystemIPv6InterfaceProperties.cs
- PropertyCollection.cs
- StretchValidation.cs
- AutoScrollExpandMessageFilter.cs
- ChannelCacheSettings.cs
- DateRangeEvent.cs
- MarshalDirectiveException.cs
- XPathAncestorQuery.cs
- SelectionChangedEventArgs.cs
- Receive.cs
- StreamGeometryContext.cs
- ColorTransform.cs
- RegexBoyerMoore.cs
- LineServices.cs
- IteratorFilter.cs
- BamlResourceSerializer.cs
- FrugalMap.cs
- RegexMatchCollection.cs
- DataBoundControlHelper.cs
- DetailsViewDeleteEventArgs.cs
- ConfigurationLocation.cs
- MessageQueueTransaction.cs
- ExportFileRequest.cs
- ParserHooks.cs
- Types.cs
- SignedXml.cs
- PieceNameHelper.cs
- CodeArrayIndexerExpression.cs
- ResourcePart.cs
- KeyedQueue.cs
- OleDbInfoMessageEvent.cs
- PerspectiveCamera.cs
- ObjectCloneHelper.cs
- EntityDataSourceChangedEventArgs.cs
- BufferedGraphics.cs
- MaskedTextBox.cs
- SizeConverter.cs
- GlobalizationSection.cs
- ClientSettings.cs
- PipelineModuleStepContainer.cs
- URI.cs
- SynchronousChannel.cs
- WeakReadOnlyCollection.cs
- EntityReference.cs
- FolderLevelBuildProviderAppliesToAttribute.cs
- WebPartCancelEventArgs.cs
- ServiceModelEnumValidatorAttribute.cs
- ProfileGroupSettings.cs
- IPCCacheManager.cs
- SessionEndingCancelEventArgs.cs
- StackOverflowException.cs
- NativeMethods.cs
- ThreadStartException.cs
- AssemblyResourceLoader.cs
- MimeReturn.cs
- WebEvents.cs
- ConfigurationSection.cs
- DisposableCollectionWrapper.cs
- XmlQueryStaticData.cs
- PipelineModuleStepContainer.cs
- ValueQuery.cs
- SimpleMailWebEventProvider.cs
- SubclassTypeValidatorAttribute.cs
- WmlListAdapter.cs
- HtmlHistory.cs
- SchemaAttDef.cs
- DesignerTransaction.cs
- configsystem.cs
- BaseCollection.cs
- LogAppendAsyncResult.cs
- Mouse.cs
- DBCSCodePageEncoding.cs
- Certificate.cs
- TextBoxView.cs
- SamlAuthenticationStatement.cs
- WebPartHelpVerb.cs
- EventDescriptorCollection.cs
- PropertyMappingExceptionEventArgs.cs
- DataSourceXmlSubItemAttribute.cs
- LinqToSqlWrapper.cs
- WindowsNonControl.cs
- DataGridViewAutoSizeModeEventArgs.cs
- XmlSchemaValidationException.cs
- XmlSerializer.cs
- OleDbErrorCollection.cs
- OperatorExpressions.cs
- AttributeAction.cs
- CodeMemberEvent.cs
- CodeStatement.cs
- ManagementDateTime.cs
- XmlDocumentFragment.cs
- HtmlSelect.cs
- BamlResourceContent.cs
- SignatureDescription.cs
- UnicodeEncoding.cs
- FormCollection.cs
- NotifyIcon.cs
- baseaxisquery.cs
- NamespaceMapping.cs