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
- FixedElement.cs
- CodeTypeDelegate.cs
- TextTreeObjectNode.cs
- Matrix3D.cs
- XmlSchemaComplexContentRestriction.cs
- SqlStream.cs
- FormViewDeletedEventArgs.cs
- WebRequestModulesSection.cs
- IndexerNameAttribute.cs
- RpcCryptoContext.cs
- BufferedWebEventProvider.cs
- ConfigUtil.cs
- WindowsSspiNegotiation.cs
- ElementNotAvailableException.cs
- CodeExpressionStatement.cs
- ListControlConvertEventArgs.cs
- ProtocolsConfigurationEntry.cs
- DataStreamFromComStream.cs
- PathSegmentCollection.cs
- SqlCacheDependency.cs
- MappingException.cs
- ScriptResourceInfo.cs
- SHA256.cs
- DataListCommandEventArgs.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- Frame.cs
- DrawingGroup.cs
- TransactionChannel.cs
- ContainerUIElement3D.cs
- TextHidden.cs
- SQLBytes.cs
- EntityParameterCollection.cs
- NGCPageContentSerializerAsync.cs
- StorageEntityContainerMapping.cs
- DirectoryInfo.cs
- PixelFormats.cs
- JavaScriptObjectDeserializer.cs
- DataSourceBooleanViewSchemaConverter.cs
- RadioButtonBaseAdapter.cs
- XmlName.cs
- StackSpiller.Generated.cs
- Point3DCollection.cs
- MbpInfo.cs
- Misc.cs
- sqlser.cs
- CompensatableTransactionScopeActivityDesigner.cs
- RuleAction.cs
- DataGridViewRowPrePaintEventArgs.cs
- EmbeddedMailObjectsCollection.cs
- PropertyGridEditorPart.cs
- SQLByteStorage.cs
- SrgsRule.cs
- ViewCellSlot.cs
- ImageListUtils.cs
- WinEventWrap.cs
- CharacterMetricsDictionary.cs
- RpcCryptoContext.cs
- Transform3D.cs
- BaseValidator.cs
- WinEventTracker.cs
- EmbeddedObject.cs
- FilterFactory.cs
- X509Certificate.cs
- SelectionEditor.cs
- _NestedSingleAsyncResult.cs
- TreeViewImageIndexConverter.cs
- SoapAttributeOverrides.cs
- IdentityReference.cs
- HostingEnvironment.cs
- WmlLinkAdapter.cs
- DescriptionAttribute.cs
- ListenerTraceUtility.cs
- MetadataPropertyvalue.cs
- XmlAtomErrorReader.cs
- Utils.cs
- wgx_render.cs
- ProxySimple.cs
- MultiTrigger.cs
- SolidBrush.cs
- RegexGroup.cs
- TreeNodeStyleCollection.cs
- Simplifier.cs
- SqlError.cs
- EditorZoneBase.cs
- ConfigurationPropertyAttribute.cs
- SQLCharsStorage.cs
- WebSysDescriptionAttribute.cs
- TypeDependencyAttribute.cs
- SafeTimerHandle.cs
- EmptyControlCollection.cs
- StylusPointProperty.cs
- ReadWriteControlDesigner.cs
- CodeIndexerExpression.cs
- SystemIcmpV4Statistics.cs
- ScriptingSectionGroup.cs
- TraceRecord.cs
- URIFormatException.cs
- DemultiplexingDispatchMessageFormatter.cs
- FileStream.cs
- Domain.cs