Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- ZipPackagePart.cs
- sqlser.cs
- xml.cs
- AttachInfo.cs
- ClickablePoint.cs
- DrawingVisualDrawingContext.cs
- XmlSchemaDocumentation.cs
- _NestedMultipleAsyncResult.cs
- DetailsViewCommandEventArgs.cs
- TabletCollection.cs
- ComponentManagerBroker.cs
- Int32AnimationUsingKeyFrames.cs
- RtfNavigator.cs
- HtmlLabelAdapter.cs
- WebPartConnectionsCancelEventArgs.cs
- DoWorkEventArgs.cs
- IdentityModelDictionary.cs
- DragEvent.cs
- MsmqOutputSessionChannel.cs
- MouseActionValueSerializer.cs
- WebPartZoneBase.cs
- TextWriterEngine.cs
- Repeater.cs
- XmlQualifiedName.cs
- Collection.cs
- SchemaSetCompiler.cs
- EntityTypeEmitter.cs
- HtmlTextViewAdapter.cs
- XPathNodeList.cs
- SymLanguageType.cs
- DefaultValidator.cs
- SamlSecurityToken.cs
- SQLResource.cs
- sqlmetadatafactory.cs
- NativeStructs.cs
- ListControlConvertEventArgs.cs
- KernelTypeValidation.cs
- LocalBuilder.cs
- OpenFileDialog.cs
- ExpressionBuilder.cs
- ReachSerializer.cs
- DefaultTraceListener.cs
- ItemsPanelTemplate.cs
- FileRecordSequence.cs
- EqualityArray.cs
- DataGridLinkButton.cs
- EntityDesignerDataSourceView.cs
- UserPreferenceChangingEventArgs.cs
- SecurityContext.cs
- FontStyle.cs
- TimeStampChecker.cs
- TextTreeTextBlock.cs
- OletxEnlistment.cs
- ComponentChangedEvent.cs
- TextServicesCompartmentEventSink.cs
- parserscommon.cs
- HttpListener.cs
- PeerDuplexChannelListener.cs
- ProviderManager.cs
- ConnectionStringsExpressionBuilder.cs
- TableRowCollection.cs
- GenericWebPart.cs
- RemotingServices.cs
- NotificationContext.cs
- RIPEMD160Managed.cs
- RegionInfo.cs
- FrameDimension.cs
- OraclePermissionAttribute.cs
- RectangleF.cs
- SecurityContext.cs
- RSAOAEPKeyExchangeFormatter.cs
- GlyphTypeface.cs
- PageCache.cs
- Int64.cs
- GridItemCollection.cs
- WebBrowserDocumentCompletedEventHandler.cs
- XNodeValidator.cs
- DataTableMappingCollection.cs
- SessionParameter.cs
- ListControl.cs
- SecurityTokenReferenceStyle.cs
- X509KeyIdentifierClauseType.cs
- DesignerActionVerbList.cs
- ConfigurationSectionCollection.cs
- ElementProxy.cs
- OdbcRowUpdatingEvent.cs
- MenuScrollingVisibilityConverter.cs
- DataServiceHost.cs
- OneToOneMappingSerializer.cs
- InternalPermissions.cs
- PatternMatcher.cs
- DirtyTextRange.cs
- ControlSerializer.cs
- TypePropertyEditor.cs
- ValidationEventArgs.cs
- WorkerRequest.cs
- DBSqlParserColumn.cs
- AppSettingsExpressionBuilder.cs
- CurrentChangingEventManager.cs
- IgnoreFlushAndCloseStream.cs