RoleInstanceDiagnosticManager.CancelOnDemandTransfers Method (DataBufferName)
Cancel all on-demand transfers that are currently in progress, returning the request ID for each transfer.
Assembly: Microsoft.WindowsAzure.Diagnostics (in Microsoft.WindowsAzure.Diagnostics.dll)
The DataBufferName. Currently there can be only one active transfer per data buffer.method cancels all enqueued on-demand transfers for the specified
For example, the following code snippet cancels all on-demand transfers for performance counter data.
// Cancel all on-demand transfers for performance counters. roleInstanceDiagnosticManager.CancelOnDemandTransfers(DataBufferName.PerformanceCounters);
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.