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)
Parameters
- dataBufferName
-
Type:
Microsoft.WindowsAzure.Diagnostics.DataBufferName
Type: Microsoft.WindowsAzure.Diagnostics.DataBufferName
Name of the data buffer.
Return Value
Type: System.Collections.Generic.IEnumerable<Guid>Type: System.Collections.Generic.IEnumerable
A list of request IDs for the on-demand transfers that are in progress.
The CancelOnDemandTransfers method cancels all enqueued on-demand transfers for the specified DataBufferName. Currently there can be only one active transfer per data buffer.
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);
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. |
