匯出 (0) 列印
全部展開

RoleInstanceDiagnosticManager.CancelOnDemandTransfers 方法

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

命名空間: Microsoft.WindowsAzure.Diagnostics.Management
組件: Microsoft.WindowsAzure.Diagnostics (在 microsoft.windowsazure.diagnostics.dll 中)

'用途
Dim instance As RoleInstanceDiagnosticManager
Dim dataBufferName As DataBufferName
Dim returnValue As IEnumerable(Of Guid)

returnValue = instance.CancelOnDemandTransfers(dataBufferName)

public IEnumerable<Guid> CancelOnDemandTransfers (
	DataBufferName dataBufferName
)
public IEnumerable<Guid> CancelOnDemandTransfers (
	DataBufferName dataBufferName
)
public function CancelOnDemandTransfers (
	dataBufferName : DataBufferName
) : IEnumerable<Guid>

參數

dataBufferName

Name of the data buffer.

傳回值

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


任何這個類型的公用靜態 (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。 並非所有的執行個體成員都是安全執行緒。

開發平台

Windows XP Home Edition, Windows XP Professional, Windows Server 2003、Windows Server 2008 和 Windows 2000

目標平台

社群新增項目

顯示:
© 2014 Microsoft