Esporta (0) Stampa
Espandi tutto

Proprietà DiagnosticDataBufferConfiguration.ScheduledTransferPeriod

Gets or sets the interval between scheduled transfers for this data buffer, in minutes.

Spazio dei nomi: Microsoft.WindowsAzure.Diagnostics
Assembly: Microsoft.WindowsAzure.Diagnostics (in microsoft.windowsazure.diagnostics.dll)

'Utilizzo
Dim instance As DiagnosticDataBufferConfiguration
Dim value As TimeSpan

value = instance.ScheduledTransferPeriod

instance.ScheduledTransferPeriod = value

public TimeSpan ScheduledTransferPeriod { get; set; }
/** @property */
public TimeSpan get_ScheduledTransferPeriod ()

/** @property */
public void set_ScheduledTransferPeriod (TimeSpan value)

public function get ScheduledTransferPeriod () : TimeSpan

public function set ScheduledTransferPeriod (value : TimeSpan)

Valore proprietà

Returns TimeSpan.

The ScheduledTransferPeriod property is used to set how frequently a data buffer will transfer local logging data to persistent storage. By default, this property is not set for any data buffer to prevent unintentional storage costs.

The value you set for this property will be rounded up to the nearest minute. Therefore, the minimum transfer period you can specify is 1 minute.

Example

The following code snippet sets the transfer period of a Windows event log buffer to 1 minute.

// Get the default initial configuration for DiagnosticMonitor.
DiagnosticMonitorConfiguration diagnosticConfiguration = DiagnosticMonitor.GetDefaultInitialConfiguration();

// Filter the logs so that only error-level logs are transferred to persistent storage.
diagnosticConfiguration.WindowsEventLog.ScheduledTransferLogLevelFilter = LogLevel.Error;

// Schedule a transfer period of 30 minutes.
diagnosticConfiguration.WindowsEventLog.ScheduledTransferPeriod = TimeSpan.FromMinutes(30.0);

Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. I membri di istanza non sono garantiti come thread-safe.

Piattaforme di sviluppo

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

Piattaforme di destinazione

Aggiunte alla community

Microsoft sta conducendo un sondaggio in linea per comprendere l'opinione degli utenti in merito al sito Web di MSDN. Se si sceglie di partecipare, quando si lascia il sito Web di MSDN verrà visualizzato il sondaggio in linea.

Si desidera partecipare?
Mostra:
© 2015 Microsoft