SALES: 1-800-867-1380
This topic has not yet been rated - Rate this topic

RoleInstanceDiagnosticManager.CancelOnDemandTransfers Method

Updated: November 15, 2013

Cancel all on-demand transfers that are currently in progress, returning the request ID for each transfer.

Namespace: Microsoft.WindowsAzure.Diagnostics.Management
Assembly: Microsoft.WindowsAzure.Diagnostics (in Microsoft.WindowsAzure.Diagnostics.dll)
'Usage

'Declaration
Public Function CancelOnDemandTransfers ( _
	dataBufferName As DataBufferName _
) As IEnumerable(Of Guid)

Parameters

dataBufferName

Type: Microsoft.WindowsAzure.Diagnostics.DataBufferName

Name of the data buffer.

Return Value

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);


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

Development Platforms

Windows Vista, Windows 7 and Windows Server 2008

Target Platforms

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.