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
- StreamingContext.cs
- RichTextBoxConstants.cs
- TagNameToTypeMapper.cs
- TransformationRules.cs
- VisualStyleTypesAndProperties.cs
- XPathDocumentIterator.cs
- documentsequencetextview.cs
- HighlightVisual.cs
- UpDownEvent.cs
- HttpValueCollection.cs
- Compilation.cs
- ToolStripPanel.cs
- DownloadProgressEventArgs.cs
- AnnotationResourceCollection.cs
- FrameworkElement.cs
- RowToFieldTransformer.cs
- ServiceMetadataPublishingElement.cs
- UpdateProgress.cs
- HwndMouseInputProvider.cs
- DynamicILGenerator.cs
- XmlSignificantWhitespace.cs
- login.cs
- Converter.cs
- TimeSpanFormat.cs
- ExpressionBindings.cs
- FeatureSupport.cs
- Vector3DKeyFrameCollection.cs
- TripleDESCryptoServiceProvider.cs
- MachineKey.cs
- MobileUITypeEditor.cs
- DataServiceClientException.cs
- SQLStringStorage.cs
- ListControlDesigner.cs
- TreeViewDataItemAutomationPeer.cs
- AppearanceEditorPart.cs
- DataTableCollection.cs
- FlowLayout.cs
- ListView.cs
- TextServicesManager.cs
- _IPv4Address.cs
- FrameDimension.cs
- SqlClientFactory.cs
- HttpBrowserCapabilitiesBase.cs
- WebBrowsableAttribute.cs
- WebPartExportVerb.cs
- CngKey.cs
- WorkflowApplicationCompletedEventArgs.cs
- SystemGatewayIPAddressInformation.cs
- Environment.cs
- ServiceThrottle.cs
- AnnouncementEndpoint.cs
- FlowNode.cs
- RealizationContext.cs
- ScrollEvent.cs
- WorkItem.cs
- Models.cs
- FlowDecision.cs
- SQLInt16.cs
- DesigntimeLicenseContext.cs
- GlobalAllocSafeHandle.cs
- DesignerActionTextItem.cs
- FixedHyperLink.cs
- AppSettingsReader.cs
- ProtocolsConfigurationEntry.cs
- IDReferencePropertyAttribute.cs
- XmlEncoding.cs
- DeobfuscatingStream.cs
- AssemblyAssociatedContentFileAttribute.cs
- ManagedCodeMarkers.cs
- ReaderWriterLockWrapper.cs
- AssemblySettingAttributes.cs
- SpellerStatusTable.cs
- SplitContainerDesigner.cs
- GcSettings.cs
- EventLogConfiguration.cs
- DiagnosticTraceSource.cs
- ItemsControlAutomationPeer.cs
- ListView.cs
- ExtenderHelpers.cs
- Control.cs
- AuthenticationException.cs
- QualificationDataItem.cs
- ModelPerspective.cs
- ListViewItemMouseHoverEvent.cs
- ProviderException.cs
- ValidateNames.cs
- SqlGatherConsumedAliases.cs
- StrongNameKeyPair.cs
- WorkerRequest.cs
- BitmapCodecInfo.cs
- FieldToken.cs
- CursorConverter.cs
- PropertyToken.cs
- DrawingAttributeSerializer.cs
- TraceData.cs
- KoreanLunisolarCalendar.cs
- NameTable.cs
- PointHitTestParameters.cs
- MaterialGroup.cs
- UpdateExpressionVisitor.cs