내보내기(0) 인쇄
모두 확장

RoleInstanceDiagnosticManager.BeginOnDemandTransfer 메서드 (DataBufferName)

Begins an on-demand transfer of the specified data buffer.

네임스페이스: Microsoft.WindowsAzure.Diagnostics.Management
어셈블리: Microsoft.WindowsAzure.Diagnostics(microsoft.windowsazure.diagnostics.dll)

‘사용 방법
Dim instance As RoleInstanceDiagnosticManager
Dim sourceBufferName As DataBufferName
Dim returnValue As Guid

returnValue = instance.BeginOnDemandTransfer(sourceBufferName)

public Guid BeginOnDemandTransfer (
	DataBufferName sourceBufferName
)
public Guid BeginOnDemandTransfer (
	DataBufferName sourceBufferName
)
public function BeginOnDemandTransfer (
	sourceBufferName : DataBufferName
) : Guid

매개 변수

sourceBufferName

The name of the source buffer.

반환 값

A request ID identifying the transfer.

The BeginOnDemandTransfer(DataBufferName) method is used to start an on-demand transfer of buffered diagnostic data from the local storage of a role instance to your desired final destination. The input parameter, sourceBufferName, indicates the value of the DataBufferName enumeration that you want to transfer.

Only one transfer of each data buffer can occur at a time. For example, if you call this method using PerformanceCounters to start transferring all performance counter data for a role instance, you cannot call it again until the transfer has completed.

Example

The following code snippet starts an on-demand transfer of performance counter data for the role instance:

// Get the diagnostic monitor for the specified role instance.
RoleInstanceDiagnosticManager roleInstanceDiagnosticManager = 
       new RoleInstanceDiagnosticManager(myStorageAccount, 
                                         "28281fc7754b44faa9ccf4911983edf1",
                                         "MyWebRole",
                                         "deployment(1).MyAzureProject.WebRole1.0");

// Start a transfer of performance counter logs.
roleInstanceDiagnosticManager.BeginOnDemandTransfer(DataBufferName.PerformanceCounters);


이 형식의 모든 public static(Shared, Visual Basic의 경우) 멤버는 스레드로부터 안전합니다. 인터페이스 멤버는 스레드로부터 안전하지 않습니다.

개발 플랫폼

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Server 2008 및 Windows 2000

대상 플랫폼

커뮤니티 추가 항목

Microsoft는 MSDN 웹 사이트에 대한 귀하의 의견을 이해하기 위해 온라인 설문 조사를 진행하고 있습니다. 참여하도록 선택하시면 MSDN 웹 사이트에서 나가실 때 온라인 설문 조사가 표시됩니다.

참여하시겠습니까?
표시:
© 2014 Microsoft