Exportar (0) Imprimir
Expandir todo

OnDemandTransferOptions (Clase)

Specifies options for an on-demand transfer.

Espacio de nombres: Microsoft.WindowsAzure.Diagnostics.Management
Ensamblado: Microsoft.WindowsAzure.Diagnostics (en microsoft.windowsazure.diagnostics.dll)

Dim instance As OnDemandTransferOptions

Public Class OnDemandTransferOptions
public class OnDemandTransferOptions
public class OnDemandTransferOptions

The OnDemandTransferOptions class is used to specify options for transferring diagnostic data from a role instance. For example, you can specify a time period from which to return results, as well as specify logging levels and a name for the notification queue in persistent storage.


The following code snippet creates a complete OnDemandTransferOptions object and starts an on-demand transfer.

// Specify the on-demand transfer options for the diagnostic data.
OnDemandTransferOptions transferOptions = new OnDemandTransferOptions();

// Get data starting from an hour ago until now.
transferOptions.From = DateTime.UtcNow.AddHours(1.0);
transferOptions.To = DateTime.UtcNow;

// Specify only error-level logs.
transferOptions.LogLevelFilter = LogLevel.Error;

// Provide a name for the queue where completion messages will be stored.
transferOptions.NotificationQueueName = "wad-on-demand-transfers";

// Start a transfer of Windows event logs.
roleInstanceDiagnosticManager.BeginOnDemandTransfer(DataBufferName.PerformanceCounters, transferOptions);


Cualquier miembro estático público (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancias sean seguros para la ejecución de subprocesos.

Plataformas de desarrollo

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

Plataformas de destino

Adiciones de comunidad

© 2014 Microsoft