FaultEvent.DumpCollectionType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the type of dump that's created for AddProcessDump and sent to Watson AddProcessDump indicates which processes to dump, and DumpCollectionType determines the kind of dump To get a full heap dump, set this value to WER_DUMP_TYPE.WerDumpTypeHeapDump. e.g. (ev as FaultEvent).DumpCollectionType = WER_DUMP_TYPE.WerDumpTypeHeapDump; Another way to set this property is to add a normal Telemetry Property into the TelemetryEvent Property Bag e.g. faultEvent.Properties["DUMPCOLLECTIONTYPE"] = "werdumptypeheapdump"; //works from native code, uses Enum.Parse case insensitive. The property bag setting (usable from native code) will override the Property setting (which is much more discoverable in intellisense) When calling TelemetrySession.PostEvent(faultEvent), WerReportAddDump is called for each process in AddProcesDump with the DumpCollectionType specified. All processes dumped will have the same DumpCollectionType You can control the type of dump (and even whether to send a dump) via remote settings in your GatherEventDetails callback Very useful for collecting heap dumps for those rare cases that are very difficult to debug. Once the issue is fixed, Remote settings can turn this off. Defaults to WER_DUMP_TYPE.WerDumpTypeMiniDump
public:
property Microsoft::VisualStudio::Telemetry::WER_DUMP_TYPE DumpCollectionType { Microsoft::VisualStudio::Telemetry::WER_DUMP_TYPE get(); void set(Microsoft::VisualStudio::Telemetry::WER_DUMP_TYPE value); };
public Microsoft.VisualStudio.Telemetry.WER_DUMP_TYPE DumpCollectionType { get; set; }
member this.DumpCollectionType : Microsoft.VisualStudio.Telemetry.WER_DUMP_TYPE with get, set
Public Property DumpCollectionType As WER_DUMP_TYPE