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
- NullRuntimeConfig.cs
- ObjectStateManagerMetadata.cs
- EntityDataSourceSelectedEventArgs.cs
- Array.cs
- AccessedThroughPropertyAttribute.cs
- DoubleAnimation.cs
- FamilyMap.cs
- embossbitmapeffect.cs
- RequestQueryProcessor.cs
- EncoderBestFitFallback.cs
- Separator.cs
- DataGridRelationshipRow.cs
- StylusDevice.cs
- SqlUserDefinedTypeAttribute.cs
- ClientBase.cs
- TypeElement.cs
- ObjectAssociationEndMapping.cs
- SqlDeflator.cs
- ContentElement.cs
- NotifyIcon.cs
- PathNode.cs
- ErrorFormatterPage.cs
- CodeCompileUnit.cs
- CompositeFontFamily.cs
- FormatConvertedBitmap.cs
- PageParser.cs
- MouseWheelEventArgs.cs
- SiteMapDataSourceView.cs
- SafeNativeMethodsCLR.cs
- ProfileModule.cs
- ClassData.cs
- PageSetupDialog.cs
- BCryptNative.cs
- DataGridTextBox.cs
- ObjectDataSourceDisposingEventArgs.cs
- RegistryKey.cs
- ProjectionCamera.cs
- DrawingAttributeSerializer.cs
- CellConstantDomain.cs
- RepeatInfo.cs
- RepeatButtonAutomationPeer.cs
- CollectionViewSource.cs
- MSHTMLHost.cs
- DetailsViewInsertedEventArgs.cs
- XmlSchemaImport.cs
- DataRowComparer.cs
- TdsParserStaticMethods.cs
- URLAttribute.cs
- SchemaCreator.cs
- CommandEventArgs.cs
- ContainerActivationHelper.cs
- DrawingBrush.cs
- XmlTypeMapping.cs
- IriParsingElement.cs
- OracleColumn.cs
- TranslateTransform3D.cs
- FormsAuthenticationTicket.cs
- NotificationContext.cs
- InitializationEventAttribute.cs
- ServiceChannelProxy.cs
- AutoResetEvent.cs
- TextBreakpoint.cs
- Attributes.cs
- ExpandCollapseProviderWrapper.cs
- ToolStripSeparator.cs
- CodeTypeDeclarationCollection.cs
- RequestQueryProcessor.cs
- Canvas.cs
- NetworkCredential.cs
- DecimalStorage.cs
- WebAdminConfigurationHelper.cs
- ObjectListItemCollection.cs
- SHA1CryptoServiceProvider.cs
- PointValueSerializer.cs
- ThemeInfoAttribute.cs
- PersistenceTypeAttribute.cs
- GenericParameterDataContract.cs
- HttpListenerRequest.cs
- _SslStream.cs
- ProvideValueServiceProvider.cs
- WebHostScriptMappingsInstallComponent.cs
- ClientFormsAuthenticationCredentials.cs
- XmlIgnoreAttribute.cs
- Compress.cs
- HttpServerVarsCollection.cs
- DiscreteKeyFrames.cs
- MessageQueuePermissionAttribute.cs
- ListBoxItemWrapperAutomationPeer.cs
- Send.cs
- PropertyIDSet.cs
- DataSourceViewSchemaConverter.cs
- validationstate.cs
- HttpWebRequest.cs
- HttpModuleCollection.cs
- DataServiceQueryProvider.cs
- BinaryFormatter.cs
- FontCollection.cs
- SyndicationDeserializer.cs
- WbmpConverter.cs
- ServiceChannelManager.cs