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
- XXXOnTypeBuilderInstantiation.cs
- returneventsaver.cs
- StsCommunicationException.cs
- TdsParserStaticMethods.cs
- XmlSchemaException.cs
- FtpCachePolicyElement.cs
- ImmComposition.cs
- StrokeIntersection.cs
- FixedSOMPageElement.cs
- PeerObject.cs
- UICuesEvent.cs
- Or.cs
- IntermediatePolicyValidator.cs
- InvalidEnumArgumentException.cs
- DataSourceControlBuilder.cs
- MediaElement.cs
- LinqDataSourceUpdateEventArgs.cs
- ValidationErrorInfo.cs
- TypeSemantics.cs
- UIElementParagraph.cs
- OrderingExpression.cs
- AggregateNode.cs
- MenuBindingsEditorForm.cs
- WindowsAuthenticationEventArgs.cs
- SelectionEditor.cs
- ServiceDescriptions.cs
- DayRenderEvent.cs
- StylusPointProperties.cs
- ChineseLunisolarCalendar.cs
- Visual.cs
- XsltLoader.cs
- RotateTransform.cs
- BamlReader.cs
- PrincipalPermission.cs
- DetailsViewRowCollection.cs
- DbDataSourceEnumerator.cs
- cookiecollection.cs
- XPathNavigatorReader.cs
- SourceFileInfo.cs
- ToolStripSplitStackLayout.cs
- WindowAutomationPeer.cs
- SystemIcmpV6Statistics.cs
- SQLBinary.cs
- MouseGesture.cs
- Pen.cs
- FormClosedEvent.cs
- GridViewRowEventArgs.cs
- OutputCacheModule.cs
- GeometryDrawing.cs
- UiaCoreApi.cs
- TypedReference.cs
- ProxyBuilder.cs
- BindingOperations.cs
- OleAutBinder.cs
- State.cs
- ProfileEventArgs.cs
- ThreadAbortException.cs
- WorkflowMarkupSerializerMapping.cs
- ByteConverter.cs
- ResumeStoryboard.cs
- DataGridViewRowErrorTextNeededEventArgs.cs
- ServiceDescriptionContext.cs
- PageCatalogPartDesigner.cs
- DataKeyCollection.cs
- EncoderFallback.cs
- CategoryNameCollection.cs
- AddressHeader.cs
- XmlWhitespace.cs
- ReadOnlyDictionary.cs
- ModelFunction.cs
- SqlMetaData.cs
- PlainXmlDeserializer.cs
- SafeLibraryHandle.cs
- PropertyInformation.cs
- WebPartCatalogAddVerb.cs
- BamlReader.cs
- BooleanProjectedSlot.cs
- OrderedEnumerableRowCollection.cs
- PersonalizationStateQuery.cs
- ProviderUtil.cs
- ExceptionValidationRule.cs
- HoistedLocals.cs
- PhysicalOps.cs
- MemberJoinTreeNode.cs
- RangeValidator.cs
- OletxResourceManager.cs
- ProgressBarHighlightConverter.cs
- XmlRawWriter.cs
- xml.cs
- ApplicationContext.cs
- WpfSharedBamlSchemaContext.cs
- TransformGroup.cs
- WebPartManager.cs
- ButtonBase.cs
- PageParser.cs
- GenericsInstances.cs
- DataServiceQuery.cs
- NodeLabelEditEvent.cs
- ParameterSubsegment.cs
- PlainXmlSerializer.cs