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
- SequentialUshortCollection.cs
- TreeNodeStyleCollection.cs
- InteropBitmapSource.cs
- SqlDataReaderSmi.cs
- FileResponseElement.cs
- FileSecurity.cs
- EpmHelper.cs
- TypeConverter.cs
- XmlSchemaExternal.cs
- RotateTransform.cs
- WebPartZone.cs
- DataServiceQuery.cs
- DetailsView.cs
- LineVisual.cs
- Point3D.cs
- ControlPaint.cs
- Logging.cs
- NumberSubstitution.cs
- XmlSchemaAttribute.cs
- DataColumnMapping.cs
- PeoplePickerWrapper.cs
- StorageEntitySetMapping.cs
- ButtonFieldBase.cs
- SqlCommandBuilder.cs
- BuildDependencySet.cs
- SqlDataSourceAdvancedOptionsForm.cs
- XmlEnumAttribute.cs
- FillBehavior.cs
- XmlAtomicValue.cs
- DictionaryTraceRecord.cs
- QuaternionKeyFrameCollection.cs
- SmiContext.cs
- CriticalFinalizerObject.cs
- UpdateManifestForBrowserApplication.cs
- HttpFormatExtensions.cs
- ConfigXmlComment.cs
- InfoCardBinaryReader.cs
- StandardBindingOptionalReliableSessionElement.cs
- GridViewColumnHeaderAutomationPeer.cs
- TrustManager.cs
- ObjectPersistData.cs
- ExpandableObjectConverter.cs
- WebPartCatalogCloseVerb.cs
- LayoutTable.cs
- DataGridViewCellStyle.cs
- DataMember.cs
- ComponentResourceKey.cs
- initElementDictionary.cs
- Sentence.cs
- RoamingStoreFile.cs
- PassportAuthenticationEventArgs.cs
- PageCache.cs
- XpsDigitalSignature.cs
- AggregateNode.cs
- DocComment.cs
- SqlTypeSystemProvider.cs
- KeyPressEvent.cs
- CreateRefExpr.cs
- SQLDoubleStorage.cs
- OpenFileDialog.cs
- SessionEndedEventArgs.cs
- XmlParser.cs
- DescriptionAttribute.cs
- CodeCompileUnit.cs
- LocalIdKeyIdentifierClause.cs
- ColumnHeaderConverter.cs
- CodeCatchClause.cs
- x509utils.cs
- ContractBase.cs
- GiveFeedbackEventArgs.cs
- ProtocolElementCollection.cs
- Int32Converter.cs
- MulticastNotSupportedException.cs
- KerberosReceiverSecurityToken.cs
- WorkflowApplicationUnloadedException.cs
- XmlSchemaSimpleTypeRestriction.cs
- StoreItemCollection.Loader.cs
- SystemUdpStatistics.cs
- DynamicRendererThreadManager.cs
- SafeLocalMemHandle.cs
- SymbolType.cs
- UInt16Converter.cs
- ScriptingJsonSerializationSection.cs
- FeatureSupport.cs
- UnsafeNativeMethods.cs
- TrackBar.cs
- ReadWriteSpinLock.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- StorageEndPropertyMapping.cs
- ChainedAsyncResult.cs
- BuildProvidersCompiler.cs
- PtsContext.cs
- sitestring.cs
- SecureStringHasher.cs
- ComEventsMethod.cs
- SoapTransportImporter.cs
- WebScriptEnablingElement.cs
- MimeParameters.cs
- NonVisualControlAttribute.cs
- CategoriesDocument.cs