Exportar (0) Imprimir
Expandir Tudo

Enumeração DataBufferName

[Este tópico é uma documentação de pré-lançamento e está sujeito a alterações em versões futuras. Os tópicos em branco são incluídos como espaços reservados.]

Enumeration of each data buffer type.

Namespace: Microsoft.WindowsAzure.Diagnostics
Assembly: Microsoft.WindowsAzure.Diagnostics (em microsoft.windowsazure.diagnostics.dll)

'Uso
Dim instance As DataBufferName

'Declaração
Public Enumeration DataBufferName
public enum DataBufferName
public enum DataBufferName

Nome do membroDescrição
DiagnosticInfrastructureLogsIndicates the data buffer for logs generated by the underlying diagnostics infrastructure itself.
DirectoriesInidicates the data buffer for file-based logs.
LogsIndicates the data buffer for Windows Azure logs.
PerformanceCountersIndicates the data buffer for performance counters.
WindowsEventLogsIndicates the data buffer for Windows event logs.

The DataBufferName enumeration is used to specify a data buffer when starting or stopping an on-demand transfer of logging data. Specifically, this enumeration is used for the BeginOnDemandTransfer(DataBufferName) and CancelOnDemandTransfers methods. For example, the following code snippet starts a transfer of performance counter logs for the specified role instance:

// Create a DeploymentDiagnosticManager for the deployment.
DeploymentDiagnosticManager deploymentDiagnosticManager = new DeploymentDiagnosticManager("MyConnectionString", deploymentId);

// Get the diagnostic manager for the specified role instance.
RoleInstanceDiagnosticManager roleInstanceDiagnosticManager = deploymentDiagnosticManager.GetRoleInstanceDiagnosticManager(roleName, roleInstanceId);

// Begin the on-demand transfer of performance counter logs.
roleInstanceDiagnosticManager.BeginOnDemandTransfer(DataBufferName.PerformanceCounters);


Plataformas de desenvolvimento

Windows XP Professional com Service Pack 2 (SP2)

Plataformas de destino

Contribuições da comunidade

Mostrar:
© 2014 Microsoft