HealthMonitoringSection.BufferModes プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > HealthMonitoringSection.BufferModes プロパティの意味・解説 

HealthMonitoringSection.BufferModes プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

バッファ モード設定指定するオブジェクトコレクション取得します

名前空間: System.Web.Configuration
アセンブリ: System.Web (system.web.dll 内)
構文構文

Public ReadOnly Property
 BufferModes As BufferModesCollection
Dim instance As HealthMonitoringSection
Dim value As BufferModesCollection

value = instance.BufferModes
public BufferModesCollection BufferModes { get;
 }
public:
property BufferModesCollection^ BufferModes {
    BufferModesCollection^ get ();
}
/** @property */
public BufferModesCollection get_BufferModes ()
public function get BufferModes
 () : BufferModesCollection

プロパティ
BufferModeSettings オブジェクトの BufferModesCollection コレクション

解説解説

これは、状態監視イベント発生前にバッファする場合方法定義する BufferModeSettings オブジェクトコレクションです。

既定では、空の BufferModesCollection コレクションなります

使用例使用例

BufferModes プロパティ使用方法コード例次に示します。このコード例は、HealthMonitoringSection クラストピック取り上げているコード例一部分です。

' Add a BufferModeSettings object to the BufferModes collection property.
Dim bufferModeSetting As BufferModeSettings
 = new BufferModeSettings("Error Log",
 _
    1024, 256, 512, new TimeSpan(0, 30, 0), new
 TimeSpan(0, 5, 0), 2)
bufferModeSetting.Name = "Operations Notification"
bufferModeSetting.MaxBufferSize = 128
bufferModeSetting.MaxBufferThreads = 1
bufferModeSetting.MaxFlushSize = 24
bufferModeSetting.RegularFlushInterval = TimeSpan.MaxValue
bufferModeSetting.UrgentFlushInterval = TimeSpan.Parse("00:01:00")
bufferModeSetting.UrgentFlushThreshold = 1
healthMonitoringSection.BufferModes.Add(bufferModeSetting)

' Add a BufferModeSettings object to the BufferModes collection property.
healthMonitoringSection.BufferModes.Add(new BufferModeSettings("Error
 Log", _
    1024, 256, 512, new TimeSpan(0, 30, 0), new
 TimeSpan(0, 5, 0), 2))

' Display contents of the BufferModes collection property
Console.WriteLine("BufferModes Collection contains {0} values:",
  _
    healthMonitoringSection.BufferModes.Count)

' Display all elements.
For i As System.Int32 = 0 To
 healthMonitoringSection.BufferModes.Count - 1
bufferModeSetting = healthMonitoringSection.BufferModes(i)
Dim name As String = bufferModeSetting.Name
Dim maxBufferSize As Integer
 = bufferModeSetting.MaxBufferSize
Dim maxBufferThreads As Integer
 = bufferModeSetting.MaxBufferThreads
Dim maxFlushSize As Integer
 = bufferModeSetting.MaxFlushSize
Dim regularFlushInterval As TimeSpan = bufferModeSetting.RegularFlushInterval
Dim urgentFlushInterval As TimeSpan = bufferModeSetting.UrgentFlushInterval
Dim urgentFlushThreshold As Integer
 = bufferModeSetting.UrgentFlushThreshold
    Dim item As String =
 "Name='" & name & "', MaxBufferSize =  '"
 & maxBufferSize & _
        "', MaxBufferThreads =  '" & maxBufferThreads
 & _
        "', MaxFlushSize =  '" & maxFlushSize & _
        "', RegularFlushInterval =  '" & regularFlushInterval.ToString()
 & _
        "', UrgentFlushInterval =  '" & urgentFlushInterval.ToString()
 & _
        "', UrgentFlushThreshold =  '" & urgentFlushThreshold
 & "'"
    Console.WriteLine("  Item {0}: {1}", i, item)
Next

' Get a named BufferMode
bufferModeSetting = healthMonitoringSection.BufferModes("Error
 Log")

' Remove a BufferModeSettings object from the BufferModes collection
 property.
healthMonitoringSection.BufferModes.Remove("Error Log")

' Clear all BufferModeSettings object from the BufferModes collection
 property.
healthMonitoringSection.BufferModes.Clear()

// Add a BufferModeSettings object to the BufferModes collection property.
BufferModeSettings bufferModeSetting = new BufferModeSettings("Error
 Log", 
    1024, 256, 512, new TimeSpan(0, 30, 0), new
 TimeSpan(0, 5, 0), 2);
bufferModeSetting.Name = "Operations Notification";
bufferModeSetting.MaxBufferSize = 128;
bufferModeSetting.MaxBufferThreads = 1;
bufferModeSetting.MaxFlushSize = 24;
bufferModeSetting.RegularFlushInterval = TimeSpan.MaxValue;
bufferModeSetting.UrgentFlushInterval = TimeSpan.Parse("00:01:00");
bufferModeSetting.UrgentFlushThreshold = 1;
healthMonitoringSection.BufferModes.Add(bufferModeSetting);

// Add a BufferModeSettings object to the BufferModes collection property.
healthMonitoringSection.BufferModes.Add(new BufferModeSettings("Error
 Log", 
    1024, 256, 512, new TimeSpan(0, 30, 0), new
 TimeSpan(0, 5, 0), 2));

// Display contents of the BufferModes collection property
Console.WriteLine("BufferModes Collection contains {0} values:", 
    healthMonitoringSection.BufferModes.Count);

// Display all elements.
for (System.Int32 i = 0; i < healthMonitoringSection.BufferModes.Count;
 i++)
{
bufferModeSetting = healthMonitoringSection.BufferModes[i];
string name = bufferModeSetting.Name;
int maxBufferSize = bufferModeSetting.MaxBufferSize;
int maxBufferThreads = bufferModeSetting.MaxBufferThreads;
int maxFlushSize = bufferModeSetting.MaxFlushSize;
TimeSpan regularFlushInterval = bufferModeSetting.RegularFlushInterval;
TimeSpan urgentFlushInterval = bufferModeSetting.UrgentFlushInterval;
int urgentFlushThreshold = bufferModeSetting.UrgentFlushThreshold;
    string item = "Name='" + name + "', MaxBufferSize
 =  '" + maxBufferSize + 
        "', MaxBufferThreads =  '" + maxBufferThreads +
        "', MaxFlushSize =  '" + maxFlushSize + 
        "', RegularFlushInterval =  '" + regularFlushInterval +
        "', UrgentFlushInterval =  '" + urgentFlushInterval + 
        "', UrgentFlushThreshold =  '" + urgentFlushThreshold + "'";
    Console.WriteLine("  Item {0}: {1}", i, item);
}

// Get a named BufferMode
bufferModeSetting = healthMonitoringSection.BufferModes["Error Log"];

// Remove a BufferModeSettings object from the BufferModes collection
 property.
healthMonitoringSection.BufferModes.Remove("Error Log");

// Clear all BufferModeSettings object from the BufferModes collection
 property.
healthMonitoringSection.BufferModes.Clear();

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
HealthMonitoringSection クラス
HealthMonitoringSection メンバ
System.Web.Configuration 名前空間
BufferModesCollection クラス
BufferModeSettings クラス


このページでは「.NET Framework クラス ライブラリ リファレンス」からHealthMonitoringSection.BufferModes プロパティを検索した結果を表示しています。
Weblioに収録されているすべての辞書からHealthMonitoringSection.BufferModes プロパティを検索する場合は、下記のリンクをクリックしてください。
 全ての辞書からHealthMonitoringSection.BufferModes プロパティを検索

英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「HealthMonitoringSection.BufferModes プロパティ」の関連用語

HealthMonitoringSection.BufferModes プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



HealthMonitoringSection.BufferModes プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS