このトピックはまだ評価されていません - このトピックを評価する

OnDemandTransferOptions クラス

オンデマンド転送のオプションを指定します。

名前空間: Microsoft.WindowsAzure.Diagnostics.Management
アセンブリ: Microsoft.WindowsAzure.Diagnostics (Microsoft.WindowsAzure.Diagnostics 内)
'使用
Dim instance As OnDemandTransferOptions

public class OnDemandTransferOptions
public class OnDemandTransferOptions
public class OnDemandTransferOptions

OnDemandTransferOptions クラスは、ロール インスタンスから診断データを転送する際のオプションを指定するために使用されます。 たとえば、結果を返すための期間を指定できます。ログ レベルと固定記憶域の通知キューの名前も指定できます。

完全な OnDemandTransferOptions オブジェクトを作成し、オンデマンド転送を開始するコード スニペットを次に示します。

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


System.Object
  Microsoft.WindowsAzure.Diagnostics.Management.OnDemandTransferOptions
この型の public static (Visual Basic では Shared) メンバーは、スレッド セーフです。インスタンス メンバーの場合は、スレッド セーフであるとは限りません。

開発プラットフォーム

Windows XP Home Edition, Windows XP Professional, Windows Server 2003、Windows Server 2008、および Windows 2000

対象プラットフォーム

この情報は役に立ちましたか。
(残り 1500 文字)

コミュニティの追加

© 2013 Microsoft. All rights reserved.
facebook page visit twitter rss feed newsletter