Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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; } } } } // 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
- UriScheme.cs
- MasterPageParser.cs
- DateTimeUtil.cs
- SafeViewOfFileHandle.cs
- CompatibleComparer.cs
- FreezableOperations.cs
- StreamGeometry.cs
- _UriSyntax.cs
- SmiTypedGetterSetter.cs
- CatalogPartCollection.cs
- InterleavedZipPartStream.cs
- RegularExpressionValidator.cs
- BatchParser.cs
- MarkedHighlightComponent.cs
- DbDataReader.cs
- IdentityModelDictionary.cs
- MissingMethodException.cs
- M3DUtil.cs
- ChannelPool.cs
- EntityDataSourceWrapperCollection.cs
- MatrixAnimationUsingKeyFrames.cs
- DefaultDiscoveryService.cs
- ZipIOExtraFieldElement.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- XmlSerializationReader.cs
- CodeIterationStatement.cs
- GenericsInstances.cs
- CompareInfo.cs
- Rules.cs
- TokenBasedSetEnumerator.cs
- FontDriver.cs
- FileLevelControlBuilderAttribute.cs
- EncryptedPackageFilter.cs
- ValidationHelper.cs
- AutomationAttributeInfo.cs
- CookielessHelper.cs
- ImmutableAssemblyCacheEntry.cs
- NativeMethodsOther.cs
- SqlAliasesReferenced.cs
- NavigationPropertySingletonExpression.cs
- PermissionSetTriple.cs
- NamedObject.cs
- NativeStructs.cs
- URL.cs
- ValidationEventArgs.cs
- AnnotationResource.cs
- SoapReflectionImporter.cs
- InputLanguageEventArgs.cs
- RewritingProcessor.cs
- HyperLinkStyle.cs
- FrameSecurityDescriptor.cs
- TreeView.cs
- MultiplexingDispatchMessageFormatter.cs
- ActivityCodeDomSerializer.cs
- ReflectPropertyDescriptor.cs
- SHA256CryptoServiceProvider.cs
- XhtmlBasicValidationSummaryAdapter.cs
- FileIOPermission.cs
- DataSourceNameHandler.cs
- StrokeNodeOperations.cs
- PagedDataSource.cs
- TypeGeneratedEventArgs.cs
- MessageSecurityOverHttp.cs
- MemberExpression.cs
- Deserializer.cs
- OpenFileDialog.cs
- TextServicesDisplayAttributePropertyRanges.cs
- KnownColorTable.cs
- DataGridViewCellStateChangedEventArgs.cs
- LinqDataSourceStatusEventArgs.cs
- __Filters.cs
- OutputScope.cs
- HuffCodec.cs
- Viewport3DVisual.cs
- PlatformCulture.cs
- ToolStripItemTextRenderEventArgs.cs
- SiteMapDataSource.cs
- Expression.cs
- HandlerWithFactory.cs
- TextWriter.cs
- TransformerInfo.cs
- ImageClickEventArgs.cs
- DecoderNLS.cs
- AuthenticateEventArgs.cs
- ResourceCollectionInfo.cs
- _SslStream.cs
- DeploymentExceptionMapper.cs
- SessionStateUtil.cs
- InstanceDescriptor.cs
- SendKeys.cs
- FilterException.cs
- FillErrorEventArgs.cs
- BindingSourceDesigner.cs
- Brush.cs
- base64Transforms.cs
- SingleTagSectionHandler.cs
- XmlExtensionFunction.cs
- SHA384CryptoServiceProvider.cs
- XPathNodePointer.cs
- StyleTypedPropertyAttribute.cs