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

Dim instance As ApplicationQueuingAttribute Dim value As Boolean value = instance.Enabled instance.Enabled = value
/** @property */ public boolean get_Enabled () /** @property */ public void set_Enabled (boolean value)
キュー サポートが有効な場合は true。それ以外の場合は false。コンストラクタによって設定される既定値は true です。

既定では、アプリケーションはキュー コンポーネントを使用できません。ApplicationQueuingAttribute のインスタンスを生成すると、アプリケーションでキュー コンポーネントを使用できるようになりますが、クライアントからのキュー メッセージを待機することはできません。

ApplicationQueuing 属性の Enabled プロパティの値の取得と設定を行うコード例を次に示します。
' 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 Enabled property. MsgBox("ApplicationQueuingAttribute.Enabled: " & attribute.Enabled) ' Set the Enabled property value of the attribute. attribute.Enabled = False ' Display the new value of the attribute's Enabled property. MsgBox("ApplicationQueuingAttribute.Enabled: " & attribute.Enabled)
// 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 Enabled property. Console.WriteLine("ApplicationQueuingAttribute.Enabled: {0}", attribute.Enabled); // Set the Enabled property value of the attribute. attribute.Enabled = false; // Display the new value of the attribute's Enabled property. Console.WriteLine("ApplicationQueuingAttribute.Enabled: {0}", attribute.Enabled);
// 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 Enabled property. Console.WriteLine("ApplicationQueuingAttribute.Enabled: {0}", System.Convert.ToString(attribute.get_Enabled())); // Set the Enabled property value of the attribute. attribute.set_Enabled(false); // Display the new value of the attribute's Enabled property. Console.WriteLine("ApplicationQueuingAttribute.Enabled: {0}", System.Convert.ToString(attribute.get_Enabled()));


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


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

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