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

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

ApplicationQueuingAttribute.MaxListenerThreads プロパティ

メッセージキューから抽出し対応するコンポーネントアクティブ化するために使用するスレッドの数を取得または設定します

名前空間: System.EnterpriseServices
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文構文

Public Property MaxListenerThreads As
 Integer
Dim instance As ApplicationQueuingAttribute
Dim value As Integer

value = instance.MaxListenerThreads

instance.MaxListenerThreads = value
public int MaxListenerThreads { get;
 set; }
public:
property int MaxListenerThreads {
    int get ();
    void set (int value);
}
/** @property */
public int get_MaxListenerThreads ()

/** @property */
public void set_MaxListenerThreads (int
 value)
public function get MaxListenerThreads
 () : int

public function set MaxListenerThreads
 (value : int)

プロパティ
キュー到着するメッセージ処理するときに使用するスレッド最大数。既定値は 0 です。

解説解説

このプロパティの有効範囲は 0 ~ 1000 です。既定値ゼロです。新しく作成したアプリケーションについては、既定リスナ スレッド数 (サーバーCPU 数の 16 倍) を決定するために現在使用されているアルゴリズムから設定派生させます

詳細については、「Applications (COM+)」の QcListenerMaxThreadsトピック参照してください

使用例使用例

ApplicationQueuing 属性MaxListenerThreads プロパティの値の取得設定を行うコード例次に示します

' This example code requires that an ApplicationQueuing attribute be
' applied to the assembly, as shown below:
' [assembly: ApplicationQueuing]
' Get the ApplicationQueuingAttribute applied to the assembly.
Dim attribute As ApplicationQueuingAttribute
 = CType(attribute.GetCustomAttribute(System.Reflection.Assembly.GetExecutingAssembly(),
 GetType(ApplicationQueuingAttribute), False), ApplicationQueuingAttribute)

' Display the current value of the attribute's MaxListenerThreads
' property.
MsgBox("ApplicationQueuingAttribute.MaxListenerThreads: "
 & attribute.MaxListenerThreads)

' Set the MaxListenerThreads property value of the attribute.
attribute.MaxListenerThreads = 1

' Display the new value of the attribute's MaxListenerThreads
' property.
MsgBox("ApplicationQueuingAttribute.MaxListenerThreads: "
 & attribute.MaxListenerThreads)
// This example code requires that an ApplicationQueuing attribute be
// applied to the assembly, as shown below:
// [assembly: ApplicationQueuing]

// Get the ApplicationQueuingAttribute applied to the assembly.
ApplicationQueuingAttribute attribute =
    (ApplicationQueuingAttribute)Attribute.GetCustomAttribute(
    System.Reflection.Assembly.GetExecutingAssembly(),
    typeof(ApplicationQueuingAttribute),
    false);

// Display the current value of the attribute's MaxListenerThreads
// property.
Console.WriteLine(
    "ApplicationQueuingAttribute.MaxListenerThreads: {0}",
    attribute.MaxListenerThreads);

// Set the MaxListenerThreads property value of the attribute.
attribute.MaxListenerThreads = 1;

// Display the new value of the attribute's MaxListenerThreads
// property.
Console.WriteLine(
    "ApplicationQueuingAttribute.MaxListenerThreads: {0}",
    attribute.MaxListenerThreads);

// This example code requires that an ApplicationQueuing attribute be
// applied to the assembly, as shown below:
// /** @assembly ApplicationQueuing 
//  */
// Get the ApplicationQueuingAttribute applied to the assembly.
ApplicationQueuingAttribute attribute = (ApplicationQueuingAttribute)(
    Attribute.GetCustomAttribute(System.Reflection.Assembly.
    GetExecutingAssembly(), ApplicationQueuingAttribute.class.ToType()
,
    false));

// Display the current value of the attribute's MaxListenerThreads
// property.
Console.WriteLine("ApplicationQueuingAttribute.MaxListenerThreads: {0}"
,
    System.Convert.ToString(attribute.get_MaxListenerThreads()));

// Set the MaxListenerThreads property value of the attribute.
attribute.set_MaxListenerThreads(1);

// Display the new value of the attribute's MaxListenerThreads
// property.
Console.WriteLine("ApplicationQueuingAttribute.MaxListenerThreads: {0}"
,
    System.Convert.ToString(attribute.get_MaxListenerThreads()));
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ApplicationQueuingAttribute クラス
ApplicationQueuingAttribute メンバ
System.EnterpriseServices 名前空間


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

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

辞書ショートカット

すべての辞書の索引

「ApplicationQueuingAttribute.MaxListenerThreads プロパティ」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS