Code:
/ DotNET / DotNET / 8.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
- messageonlyhwndwrapper.cs
- UrlPath.cs
- SafeLibraryHandle.cs
- BmpBitmapEncoder.cs
- HttpCapabilitiesBase.cs
- MappedMetaModel.cs
- KeyFrames.cs
- UdpChannelFactory.cs
- MetabaseServerConfig.cs
- TextWriter.cs
- TextCompositionManager.cs
- SiteMapNodeItem.cs
- MemberInfoSerializationHolder.cs
- CultureNotFoundException.cs
- ContextProperty.cs
- EditorOptionAttribute.cs
- MatrixAnimationUsingKeyFrames.cs
- HttpChannelHelper.cs
- RedBlackList.cs
- LoadedEvent.cs
- HttpProfileBase.cs
- cookiecontainer.cs
- CreateParams.cs
- DbReferenceCollection.cs
- NamespaceEmitter.cs
- FileCodeGroup.cs
- _HelperAsyncResults.cs
- ListControlConvertEventArgs.cs
- AutoCompleteStringCollection.cs
- Switch.cs
- WebPartManagerInternals.cs
- DispatcherSynchronizationContext.cs
- ServiceHostingEnvironment.cs
- CoTaskMemSafeHandle.cs
- ExclusiveCanonicalizationTransform.cs
- DataControlFieldTypeEditor.cs
- DataGridViewTextBoxCell.cs
- SharedConnectionWorkflowTransactionService.cs
- Validator.cs
- HttpCookie.cs
- ConditionCollection.cs
- TextTreeRootTextBlock.cs
- GotoExpression.cs
- _UriSyntax.cs
- BuildManagerHost.cs
- PinnedBufferMemoryStream.cs
- CdpEqualityComparer.cs
- SimpleHandlerBuildProvider.cs
- CanonicalFormWriter.cs
- WebFormsRootDesigner.cs
- RSAProtectedConfigurationProvider.cs
- BamlTreeNode.cs
- assemblycache.cs
- GeneralTransformCollection.cs
- PenLineCapValidation.cs
- versioninfo.cs
- ThemeDirectoryCompiler.cs
- ActiveXSite.cs
- ReaderContextStackData.cs
- OleDbInfoMessageEvent.cs
- WinEventHandler.cs
- CollectionDataContractAttribute.cs
- CheckBoxDesigner.cs
- DataServiceBehavior.cs
- DtrList.cs
- InfoCardPolicy.cs
- LingerOption.cs
- SelectionHighlightInfo.cs
- UnsafeNativeMethods.cs
- HashCodeCombiner.cs
- Interlocked.cs
- FormatStringEditor.cs
- PersonalizationState.cs
- filewebrequest.cs
- PerformanceCounterLib.cs
- EventWaitHandleSecurity.cs
- SqlBuilder.cs
- ReadOnlyHierarchicalDataSourceView.cs
- ServiceReference.cs
- TypeElement.cs
- TabControlAutomationPeer.cs
- XmlValueConverter.cs
- DataGridViewHeaderCell.cs
- ServiceInfo.cs
- DataGridViewMethods.cs
- DbConnectionInternal.cs
- NativeCppClassAttribute.cs
- DataGridViewAccessibleObject.cs
- DefinitionUpdate.cs
- StyleTypedPropertyAttribute.cs
- DataGridViewCellCancelEventArgs.cs
- COM2TypeInfoProcessor.cs
- XsdDuration.cs
- SchemaComplexType.cs
- DBAsyncResult.cs
- Socket.cs
- MetadataArtifactLoaderResource.cs
- EventLogEntry.cs
- LookupNode.cs
- VisualStyleInformation.cs