Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- TextElementAutomationPeer.cs
- HwndSource.cs
- DiscoveryDocumentReference.cs
- KeyValueConfigurationElement.cs
- ConfigurationSectionGroup.cs
- CacheAxisQuery.cs
- XmlConvert.cs
- BCLDebug.cs
- TrackingMemoryStreamFactory.cs
- MembershipPasswordException.cs
- MemberProjectionIndex.cs
- SystemException.cs
- DiffuseMaterial.cs
- PrimitiveDataContract.cs
- Focus.cs
- ReservationCollection.cs
- X509Certificate2.cs
- UserPreferenceChangedEventArgs.cs
- SelectionGlyph.cs
- PopupControlService.cs
- activationcontext.cs
- ProgressBar.cs
- MachineKeyConverter.cs
- XmlSchemaObjectCollection.cs
- ApplicationDirectory.cs
- OrderablePartitioner.cs
- ControlBuilderAttribute.cs
- Setter.cs
- ContainerVisual.cs
- ServicePoint.cs
- TableLayoutPanel.cs
- PageParserFilter.cs
- HttpProfileBase.cs
- BooleanFunctions.cs
- MimePart.cs
- DataGridViewLinkCell.cs
- DataSpaceManager.cs
- InstanceOwner.cs
- ColorConverter.cs
- SecurityTokenSerializer.cs
- DriveNotFoundException.cs
- unsafenativemethodsother.cs
- EllipseGeometry.cs
- ConstraintEnumerator.cs
- TargetInvocationException.cs
- XmlSchemaSimpleTypeRestriction.cs
- ModelPropertyImpl.cs
- PackagePartCollection.cs
- X509ScopedServiceCertificateElementCollection.cs
- GlyphCache.cs
- AnonymousIdentificationSection.cs
- Int32Collection.cs
- StylusCollection.cs
- DetailsViewUpdateEventArgs.cs
- ContentTypeSettingDispatchMessageFormatter.cs
- WebControl.cs
- DtrList.cs
- SpellerInterop.cs
- TablePattern.cs
- Bezier.cs
- InputScopeAttribute.cs
- ImageUrlEditor.cs
- SecurityHeaderTokenResolver.cs
- TrustManager.cs
- OneOfConst.cs
- TripleDESCryptoServiceProvider.cs
- ConsoleTraceListener.cs
- X509SecurityToken.cs
- webclient.cs
- DataGridToolTip.cs
- ApplicationHost.cs
- PriorityQueue.cs
- PerformanceCounterPermission.cs
- CorrelationTokenTypeConvertor.cs
- XmlSchemaSimpleTypeUnion.cs
- FillRuleValidation.cs
- SimplePropertyEntry.cs
- RSAProtectedConfigurationProvider.cs
- HostProtectionException.cs
- NullableFloatSumAggregationOperator.cs
- HttpTransportSecurityElement.cs
- DataGridViewColumnHeaderCell.cs
- CroppedBitmap.cs
- WebPartVerbsEventArgs.cs
- mediapermission.cs
- DataRow.cs
- ToolStripSystemRenderer.cs
- TextFormatter.cs
- XmlAnyAttributeAttribute.cs
- RegexCompilationInfo.cs
- CryptoKeySecurity.cs
- InheritanceAttribute.cs
- PathFigure.cs
- SelfIssuedAuthRSAPKCS1SignatureFormatter.cs
- XPathSingletonIterator.cs
- Propagator.JoinPropagator.cs
- InputScope.cs
- SemanticValue.cs
- DragDrop.cs
- SoapTransportImporter.cs