Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- FilteredXmlReader.cs
- WorkflowQueueInfo.cs
- ReadingWritingEntityEventArgs.cs
- EastAsianLunisolarCalendar.cs
- XdrBuilder.cs
- Lease.cs
- OdbcCommandBuilder.cs
- AuthStoreRoleProvider.cs
- _LazyAsyncResult.cs
- UserValidatedEventArgs.cs
- HttpBrowserCapabilitiesBase.cs
- ByteAnimationBase.cs
- Socket.cs
- CodeTypeParameter.cs
- FileReservationCollection.cs
- ToolStripItemTextRenderEventArgs.cs
- TraceSection.cs
- GeneralTransform3D.cs
- ScrollableControl.cs
- EntityDataSourceStatementEditor.cs
- WebMethodAttribute.cs
- AutoGeneratedField.cs
- TextEndOfLine.cs
- SortedList.cs
- JumpTask.cs
- SqlFactory.cs
- ProfileGroupSettingsCollection.cs
- HttpChannelBindingToken.cs
- CapabilitiesRule.cs
- ConvertEvent.cs
- OpacityConverter.cs
- StaticDataManager.cs
- ScriptManager.cs
- DateTimeConverter.cs
- WebBrowserProgressChangedEventHandler.cs
- ProtocolsConfiguration.cs
- DiagnosticsConfigurationHandler.cs
- SemanticAnalyzer.cs
- DefinitionBase.cs
- Statements.cs
- MethodBuilderInstantiation.cs
- PocoPropertyAccessorStrategy.cs
- RightNameExpirationInfoPair.cs
- ListViewVirtualItemsSelectionRangeChangedEvent.cs
- FrameSecurityDescriptor.cs
- AtlasWeb.Designer.cs
- FtpCachePolicyElement.cs
- ReferentialConstraint.cs
- ConnectionManagementSection.cs
- JoinCqlBlock.cs
- GeometryDrawing.cs
- ColumnBinding.cs
- DefaultAsyncDataDispatcher.cs
- ResetableIterator.cs
- InternalControlCollection.cs
- Query.cs
- DbUpdateCommandTree.cs
- PerformanceCounterManager.cs
- ElementHostPropertyMap.cs
- HGlobalSafeHandle.cs
- GrammarBuilderDictation.cs
- DeleteIndexBinder.cs
- DataGridViewTopRowAccessibleObject.cs
- WebException.cs
- ContentDisposition.cs
- SystemIdentity.cs
- StringBuilder.cs
- VisualBrush.cs
- MessageAction.cs
- NamespaceCollection.cs
- WebPermission.cs
- VoiceInfo.cs
- BitmapInitialize.cs
- SafeFindHandle.cs
- TextMetrics.cs
- HttpRequestTraceRecord.cs
- RectIndependentAnimationStorage.cs
- WorkflowWebHostingModule.cs
- TemplateBuilder.cs
- MdiWindowListItemConverter.cs
- FrugalList.cs
- PreviewKeyDownEventArgs.cs
- BitmapImage.cs
- oledbmetadatacolumnnames.cs
- SHA384CryptoServiceProvider.cs
- KeyManager.cs
- ButtonFlatAdapter.cs
- Exceptions.cs
- VirtualPathData.cs
- ReadOnlyAttribute.cs
- ProcessHostConfigUtils.cs
- Speller.cs
- SQLBoolean.cs
- StdValidatorsAndConverters.cs
- URIFormatException.cs
- FrameworkContextData.cs
- CfgSemanticTag.cs
- XmlTextReader.cs
- X509ChainPolicy.cs
- KeyValuePairs.cs