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

DiagnosticDataBufferConfiguration.ScheduledTransferPeriod 속성

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

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

‘사용 방법
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)

속성 값

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

이 형식의 모든 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