ApplicationQueuingAttribute.MaxListenerThreads プロパティ
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)

Dim instance As ApplicationQueuingAttribute Dim value As Integer value = instance.MaxListenerThreads instance.MaxListenerThreads = 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()));


Windows 98, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からApplicationQueuingAttribute.MaxListenerThreads プロパティを検索する場合は、下記のリンクをクリックしてください。

- ApplicationQueuingAttribute.MaxListenerThreads プロパティのページへのリンク