You can try to use TelemetryConfiguration.DisableTelemetry Property
Something like this way..
#if DEBUG
TelemetryConfiguration.Active.DisableTelemetry = true;
#endif
More Related Contents:
- View POST request body in Application Insights
- Adding custom properties for each request in Application Insights metrics
- Set object property using reflection
- How can I evaluate C# code dynamically?
- Cross-thread operation not valid [duplicate]
- Concurrent HashSet in .NET Framework?
- Does the C# “finally” block ALWAYS execute? [duplicate]
- Is there a way to check if WPF is currently executing in design mode or not?
- How to generate an image from text on fly at runtime
- Hyphenated html attributes with asp.net mvc
- OleDbParameters and Parameter Names
- Upload file to FTP using C#
- Save BitmapImage to File
- Selenium stops when browser is manually interrupted
- Resolve Type from Class Name in a Different Assembly
- Conversion from List to array T[]
- Sorting an array of folder names like Windows Explorer (Numerically and Alphabetically) – VB.NET
- DataGridView checkbox column – value and functionality
- How to create byte array from HttpPostedFile
- Setting up Swagger (ASP.NET Core) using the Authorization headers (Bearer)
- How can I access session in a webmethod?
- What’s the best way to test SQL Server connection programmatically?
- IRS-A2A BulkRequestTransmitter message not formmatted properly and/or cannot be interpreted
- “does not contain a static ‘main’ method suitable for an entry point”
- Convert Dataset to XML
- Simulate variadic templates in C#
- How to insert a Symbol (Pound, Euro, Copyright) into a Textbox
- How to return XML in ASP.NET?
- Is it possible to have a delegate as attribute parameter?
- iTextSharp international text