ApplicationQueuingAttribute.QueueListenerEnabled プロパティ
アセンブリ: System.EnterpriseServices (system.enterpriseservices.dll 内)
構文Dim instance As ApplicationQueuingAttribute Dim value As Boolean value = instance.QueueListenerEnabled instance.QueueListenerEnabled = value
/** @property */ public boolean get_QueueListenerEnabled () /** @property */ public void set_QueueListenerEnabled (boolean value)
public function get QueueListenerEnabled () : boolean public function set QueueListenerEnabled (value : boolean)
キュー コンポーネントの呼び出しをアプリケーションが受け入れる場合は true。それ以外の場合は false。既定値は false です。
使用例ApplicationQueuing 属性の QueueListenerEnabled プロパティの値の取得と設定を行うコード例を次に示します。
' 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 QueueListenerEnabled ' property. MsgBox("ApplicationQueuingAttribute.QueueListenerEnabled: " & attribute.Enabled) ' Set the QueueListenerEnabled property value of the attribute. attribute.QueueListenerEnabled = False ' Display the new value of the attribute's QueueListenerEnabled ' property. MsgBox("ApplicationQueuingAttribute.QueueListenerEnabled: " & attribute.QueueListenerEnabled)
// 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 QueueListenerEnabled // property. Console.WriteLine( "ApplicationQueuingAttribute.QueueListenerEnabled: {0}", attribute.Enabled); // Set the QueueListenerEnabled property value of the attribute. attribute.QueueListenerEnabled = false; // Display the new value of the attribute's QueueListenerEnabled // property. Console.WriteLine( "ApplicationQueuingAttribute.QueueListenerEnabled: {0}", attribute.QueueListenerEnabled);
// 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 QueueListenerEnabled // property. Console.WriteLine( "ApplicationQueuingAttribute.QueueListenerEnabled: {0}", System.Convert.ToString(attribute.get_Enabled())); // Set the QueueListenerEnabled property value of the attribute. attribute.set_QueueListenerEnabled(false); // Display the new value of the attribute's QueueListenerEnabled // property. Console.WriteLine( "ApplicationQueuingAttribute.QueueListenerEnabled: {0}", System.Convert.ToString(attribute.get_QueueListenerEnabled()));
.NET Framework のセキュリティ
プラットフォーム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 によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照- ApplicationQueuingAttribute.QueueListenerEnabled プロパティのページへのリンク