Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / 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; } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DiagnosticsConfigurationHandler.cs
- LogSwitch.cs
- CompilerErrorCollection.cs
- SchemaType.cs
- WindowsFormsLinkLabel.cs
- UserControlBuildProvider.cs
- XmlQueryCardinality.cs
- CompoundFileReference.cs
- XmlSchemaAnnotated.cs
- CssStyleCollection.cs
- EditingCommands.cs
- ArithmeticException.cs
- IIS7UserPrincipal.cs
- HttpApplicationFactory.cs
- PropertySegmentSerializer.cs
- TransformPatternIdentifiers.cs
- FactoryMaker.cs
- VideoDrawing.cs
- Internal.cs
- SystemException.cs
- CapabilitiesState.cs
- TextBlock.cs
- RepeaterItemEventArgs.cs
- XmlEntity.cs
- SchemaImporter.cs
- MetadataHelper.cs
- SecurityTokenReferenceStyle.cs
- BamlResourceContent.cs
- autovalidator.cs
- _AcceptOverlappedAsyncResult.cs
- Thread.cs
- QueryRewriter.cs
- Rect3DValueSerializer.cs
- GridViewAutomationPeer.cs
- GridViewSortEventArgs.cs
- QueryOperator.cs
- ResetableIterator.cs
- XmlSchemaComplexContent.cs
- DbgUtil.cs
- ThousandthOfEmRealPoints.cs
- DbInsertCommandTree.cs
- UnsignedPublishLicense.cs
- SoapReflectionImporter.cs
- ScriptResourceInfo.cs
- Point4D.cs
- WebBaseEventKeyComparer.cs
- LinkedResourceCollection.cs
- Currency.cs
- DesignerValidatorAdapter.cs
- RolePrincipal.cs
- BufferModesCollection.cs
- SparseMemoryStream.cs
- NumberFormatInfo.cs
- BitmapEffect.cs
- HostingEnvironmentWrapper.cs
- AxDesigner.cs
- ToolStripLocationCancelEventArgs.cs
- DES.cs
- TimeZone.cs
- BaseTemplateCodeDomTreeGenerator.cs
- DataGridViewBindingCompleteEventArgs.cs
- XmlSchemaExporter.cs
- WindowsServiceCredential.cs
- isolationinterop.cs
- FastPropertyAccessor.cs
- CodeStatement.cs
- EncryptedKey.cs
- BamlLocalizableResource.cs
- TemplatePropertyEntry.cs
- DataGridViewComboBoxColumn.cs
- ToolStripSettings.cs
- DtcInterfaces.cs
- CodeMemberEvent.cs
- DataProtection.cs
- FormViewModeEventArgs.cs
- Operand.cs
- IBuiltInEvidence.cs
- FunctionQuery.cs
- BitVector32.cs
- CmsInterop.cs
- ASCIIEncoding.cs
- EdmProviderManifest.cs
- CategoryAttribute.cs
- ControlValuePropertyAttribute.cs
- HtmlTextArea.cs
- ReceiveCompletedEventArgs.cs
- DataGridParentRows.cs
- AccessibilityHelperForVista.cs
- PathSegmentCollection.cs
- TraceHandler.cs
- PngBitmapEncoder.cs
- RichTextBoxAutomationPeer.cs
- Rect3D.cs
- WinInetCache.cs
- ColorConvertedBitmapExtension.cs
- HotCommands.cs
- ArrayElementGridEntry.cs
- XmlILConstructAnalyzer.cs
- ActiveDocumentEvent.cs
- Command.cs