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
- HtmlTable.cs
- ContextMenuAutomationPeer.cs
- ContainerSelectorActiveEvent.cs
- XPathAncestorQuery.cs
- IPAddressCollection.cs
- ControlEvent.cs
- XsdDateTime.cs
- Translator.cs
- Exceptions.cs
- SplitterCancelEvent.cs
- TemporaryBitmapFile.cs
- NativeObjectSecurity.cs
- WorkflowDebuggerSteppingAttribute.cs
- RepeaterItemEventArgs.cs
- EntityContainerRelationshipSet.cs
- SHA1Managed.cs
- ParsedRoute.cs
- SqlNode.cs
- LocalizationComments.cs
- IntSecurity.cs
- SystemFonts.cs
- PreProcessor.cs
- RegexParser.cs
- StyleTypedPropertyAttribute.cs
- ExpressionBuilderContext.cs
- OdbcEnvironment.cs
- Style.cs
- SmtpReplyReaderFactory.cs
- TimeSpan.cs
- Token.cs
- ParallelSeparator.xaml.cs
- AnnotationAuthorChangedEventArgs.cs
- IPEndPointCollection.cs
- XmlWriterTraceListener.cs
- ValidationContext.cs
- WebControlAdapter.cs
- CorrelationTokenTypeConvertor.cs
- DataExchangeServiceBinder.cs
- StringUtil.cs
- graph.cs
- ListMarkerLine.cs
- InputLangChangeRequestEvent.cs
- GridItemProviderWrapper.cs
- DataGridTablesFactory.cs
- BitmapEffectCollection.cs
- TypeGeneratedEventArgs.cs
- EntityDataSourceDataSelectionPanel.cs
- LicFileLicenseProvider.cs
- Trace.cs
- SafeLocalMemHandle.cs
- ToolStripSplitStackLayout.cs
- MaterialGroup.cs
- TdsParserStateObject.cs
- MenuCommand.cs
- PageVisual.cs
- XmlSortKey.cs
- ScrollProperties.cs
- OleDbInfoMessageEvent.cs
- PropertyInformationCollection.cs
- XdrBuilder.cs
- ping.cs
- ResourceDescriptionAttribute.cs
- BinaryFormatter.cs
- IODescriptionAttribute.cs
- PageClientProxyGenerator.cs
- TargetParameterCountException.cs
- AvTraceFormat.cs
- PointCollectionValueSerializer.cs
- ConversionHelper.cs
- PageThemeBuildProvider.cs
- ZipIOModeEnforcingStream.cs
- DictionaryContent.cs
- CustomErrorCollection.cs
- xmlglyphRunInfo.cs
- ListItemCollection.cs
- HostedTransportConfigurationBase.cs
- PathStreamGeometryContext.cs
- Function.cs
- GZipDecoder.cs
- OpCopier.cs
- ValueType.cs
- NoneExcludedImageIndexConverter.cs
- ViewUtilities.cs
- SoapMessage.cs
- HttpDictionary.cs
- SortAction.cs
- Mapping.cs
- MethodMessage.cs
- MediaContextNotificationWindow.cs
- DrawingContextWalker.cs
- ComIntegrationManifestGenerator.cs
- SchemaTypeEmitter.cs
- DependencyObject.cs
- Merger.cs
- TypeResolvingOptions.cs
- SafeSecurityHandles.cs
- DBConnection.cs
- ThemeConfigurationDialog.cs
- DataBindingCollectionConverter.cs
- MemberCollection.cs