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
- SafeEventLogWriteHandle.cs
- _ProxyChain.cs
- SecurityVersion.cs
- InertiaRotationBehavior.cs
- _ConnectOverlappedAsyncResult.cs
- SqlConnectionPoolProviderInfo.cs
- SystemResources.cs
- NavigationProperty.cs
- StringComparer.cs
- CriticalFinalizerObject.cs
- DiscoveryDefaults.cs
- SerializationSectionGroup.cs
- CodeTypeReferenceCollection.cs
- HttpModuleActionCollection.cs
- ScriptRegistrationManager.cs
- XPathEmptyIterator.cs
- ThousandthOfEmRealPoints.cs
- CacheHelper.cs
- __TransparentProxy.cs
- DbConnectionPool.cs
- Hex.cs
- HtmlInputRadioButton.cs
- ImmutableCommunicationTimeouts.cs
- TreeViewEvent.cs
- SqlGatherConsumedAliases.cs
- DataColumnMappingCollection.cs
- DataBindingHandlerAttribute.cs
- Divide.cs
- SafeLocalAllocation.cs
- RadioButton.cs
- XmlLanguage.cs
- UserControlCodeDomTreeGenerator.cs
- While.cs
- ByteStream.cs
- HtmlContainerControl.cs
- CodeTypeReference.cs
- XmlSchemaAttributeGroupRef.cs
- TimeSpanConverter.cs
- DrawingState.cs
- PlaceHolder.cs
- TypeLibConverter.cs
- SimpleTypeResolver.cs
- xmlsaver.cs
- OrthographicCamera.cs
- NodeFunctions.cs
- XmlTextReaderImpl.cs
- NativeMethods.cs
- PropertyKey.cs
- RowsCopiedEventArgs.cs
- XhtmlBasicFormAdapter.cs
- OpenTypeLayoutCache.cs
- QueueAccessMode.cs
- Symbol.cs
- AssemblySettingAttributes.cs
- EpmSourcePathSegment.cs
- OutOfProcStateClientManager.cs
- Pair.cs
- TrackingConditionCollection.cs
- DecoderFallback.cs
- TextFormatterHost.cs
- complextypematerializer.cs
- ButtonRenderer.cs
- PackUriHelper.cs
- ResourceAttributes.cs
- UrlMapping.cs
- ParallelDesigner.cs
- AspNetHostingPermission.cs
- CompilationAssemblyInstallComponent.cs
- Icon.cs
- UnhandledExceptionEventArgs.cs
- JournalEntryStack.cs
- WindowsIdentity.cs
- QuaternionAnimation.cs
- SystemEvents.cs
- ZipIOLocalFileHeader.cs
- TemplateBamlTreeBuilder.cs
- brushes.cs
- DllNotFoundException.cs
- BitmapEffectCollection.cs
- DynamicResourceExtension.cs
- LayoutUtils.cs
- ValueSerializerAttribute.cs
- TemplateBindingExpression.cs
- IsolatedStorage.cs
- unsafenativemethodstextservices.cs
- DebugControllerThread.cs
- IUnknownConstantAttribute.cs
- SpotLight.cs
- TypeUtils.cs
- ApplicationSettingsBase.cs
- HighlightVisual.cs
- ExpressionVisitor.cs
- WebPartActionVerb.cs
- OpenTypeLayout.cs
- PackageDigitalSignature.cs
- DataGridViewRowEventArgs.cs
- Vector3D.cs
- cookiecontainer.cs
- QilDataSource.cs
- XmlDataDocument.cs