次の方法で共有


CrashDumps Class

 

Represents application crash dumps.

Namespace:   Microsoft.WindowsAzure.Diagnostics
Assembly:  Microsoft.WindowsAzure.Diagnostics (in Microsoft.WindowsAzure.Diagnostics.dll)

Inheritance Hierarchy

System.Object
  Microsoft.WindowsAzure.Diagnostics.CrashDumps

Syntax

public static class CrashDumps
public ref class CrashDumps abstract sealed 
[<AbstractClass>]
[<Sealed>]
type CrashDumps = class end
Public NotInheritable Class CrashDumps

Methods

Name Description
System_CAPS_pubmethodSystem_CAPS_static EnableCollection(Boolean)

Enables collection of mini crash dumps or full crash dumps for a role instance.

System_CAPS_pubmethodSystem_CAPS_static EnableCollectionToDirectory(String, Boolean)

Enables collection mini crash dumps or full crash dumps for a role instance to the specified directory.

Remarks

The CrashDumps class has two methods for enabling collection of crash dump data: EnableCollection and EnableCollectionToDirectory. EnableCollection enables collection of full crash dumps or mini crash dumps to the CrashDumps directory, while EnableCollectionToDirectory enables collection of crash dumps to a specified directory.

You can use CrashDumps with worker roles without additional configuration, but web roles require additional configuration due to robust ASP.NET exception handling.

Warning

This API is not supported in Azure SDK versions 2.5 and higher. Instead, use the diagnostics.wadcfg XML configuration file. For more information, see Collect Logging Data by Using Azure Diagnostics.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Diagnostics Namespace

Return to top