InterfaceQueuingAttributeとは? わかりやすく解説

InterfaceQueuingAttribute クラス

マークされインターフェイスキュー サポート有効にます。このクラス継承できません。

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

<ComVisibleAttribute(False)> _
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Interface,
 Inherited:=True, AllowMultiple:=True)> _
Public NotInheritable Class
 InterfaceQueuingAttribute
    Inherits Attribute
Dim instance As InterfaceQueuingAttribute
[ComVisibleAttribute(false)] 
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, Inherited=true,
 AllowMultiple=true)] 
public sealed class InterfaceQueuingAttribute
 : Attribute
[ComVisibleAttribute(false)] 
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Interface, Inherited=true,
 AllowMultiple=true)] 
public ref class InterfaceQueuingAttribute
 sealed : public Attribute
/** @attribute ComVisibleAttribute(false) */ 
/** @attribute AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface,
 Inherited=true, AllowMultiple=true) */ 
public final class InterfaceQueuingAttribute
 extends Attribute
ComVisibleAttribute(false) 
AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Interface, Inherited=true,
 AllowMultiple=true) 
public final class InterfaceQueuingAttribute
 extends Attribute
解説解説
使用例使用例

InterfaceQueuingAttribute 属性使用方法次のコード例示します

public interface IQueuedComponent
{
    void QueuedTask();
}
// Mark IQueuedComponent interface as queued
[InterfaceQueuing(true, Interface="IQueuedComponent")]
// Create the queued component class by inheriting the 
// System.EnterpriseServices.ServicedComponent class and an
// interface that is marked as queued with the InterfaceQueuing attribute
public class QueuedComponent : ServicedComponent,
 IQueuedComponent
{
    public void QueuedTask()
    {
        // Perform queued task here
    }
}
public interface class IQueuedComponent
{
   void QueuedTask();
};


// Mark IQueuedComponent interface as queued
// Create the queued component class by inheriting the 
// System.EnterpriseServices.ServicedComponent class and an
// interface that is marked as queued with the InterfaceQueuing attribute

[InterfaceQueuing(true,Interface="IQueuedComponent")]
public ref class QueuedComponent sealed: public
 ServicedComponent, public IQueuedComponent
{
public:
   virtual void QueuedTask()
   {
      // Perform queued task here
   }

};

ApplicationQueuing 属性使用してコンパイル時に COM+ アプリケーションキュー置かれているアプリケーションとしてマークしQueueListenerEnabledtrue設定することにより COM+ リスナ有効化する方法次のコード例示します

// Mark the COM+ application as queued at compile time by using the
 
// ApplicationQueuing attribute. Enable the COM+ listener by 
// setting the QueueListenerEnabled to true
[assembly: ApplicationQueuing(Enabled=true, QueueListenerEnabled=true)]
// Mark the COM+ application as queued at compile time by using the
 
// ApplicationQueuing attribute. Enable the COM+ listener by 
// setting the QueueListenerEnabled to true
[assembly:ApplicationQueuing(Enabled=true,QueueListenerEnabled=true)];

BindToMoniker使用してキュー置かれているモニカ実行しレコーダーインスタンス取得し記録されるメソッド呼び出しレコーダー オブジェクト強制的に解放しメッセージキュー送信する方法次のコード例示します

// Use BindToMoniker to run the queued moniker, to get an instance of
 the recorder
IQueuedComponent qc = 
    (IQueuedComponent)System.Runtime.InteropServices.Marshal.BindToMoniker("queue:/new:QueuedComponent");
// Call the method that will be recorded
qc.QueuedTask();

// Force the release of the recorder object, to send the message to
 the queue
System.Runtime.InteropServices.Marshal.ReleaseComObject(qc);
// Use BindToMoniker to run the queued moniker, to get an instance of
 the recorder
IQueuedComponent ^ qc = dynamic_cast<IQueuedComponent^>(System::Runtime::InteropServices::Marshal::BindToMoniker(
 "queue:/new:QueuedComponent" ));

// Call the method that will be recorded
qc->QueuedTask();

// Force the release of the recorder object, to send the message to
 the queue
System::Runtime::InteropServices::Marshal::ReleaseComObject( qc );
継承階層継承階層
System.Object
   System.Attribute
    System.EnterpriseServices.InterfaceQueuingAttribute
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

InterfaceQueuingAttribute コンストラクタ ()

InterfaceQueuingAttribute クラス新しインスタンス初期化してEnabled プロパティおよび Interface プロパティ既定値設定します

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

Dim instance As New InterfaceQueuingAttribute
public InterfaceQueuingAttribute ()
public:
InterfaceQueuingAttribute ()
public InterfaceQueuingAttribute ()
public function InterfaceQueuingAttribute ()
解説解説

InterfaceQueuingAttributeインスタンス初期プロパティ値を次の表に示します

使用例使用例

新しInterfaceQueuingAttribute作成するコード例次に示します

<InterfaceQueuing()>  _
Public Interface IInterfaceQueuingAttribute_Ctor
End Interface 'IInterfaceQueuingAttribute_Ctor
[InterfaceQueuing]
public interface IInterfaceQueuingAttribute_Ctor
{
}
[InterfaceQueuing]
interface class IInterfaceQueuingAttribute_Ctor{};
/** @attribute InterfaceQueuing()
 */
public interface IInterfaceQueuingAttribute_Ctor
{
} //IInterfaceQueuingAttribute_Ctor
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
InterfaceQueuingAttribute クラス
InterfaceQueuingAttribute メンバ
System.EnterpriseServices 名前空間

InterfaceQueuingAttribute コンストラクタ

InterfaceQueuingAttribute クラス新しインスタンス初期化してキュー サポート有効にます。
オーバーロードの一覧オーバーロードの一覧

名前 説明
InterfaceQueuingAttribute () InterfaceQueuingAttribute クラス新しインスタンス初期化してEnabled プロパティおよび Interface プロパティ既定値設定します
InterfaceQueuingAttribute (Boolean) InterfaceQueuingAttribute クラス新しインスタンス初期化してオプションキュー サポート無効にます。
参照参照

関連項目

InterfaceQueuingAttribute クラス
InterfaceQueuingAttribute メンバ
System.EnterpriseServices 名前空間

InterfaceQueuingAttribute コンストラクタ (Boolean)

InterfaceQueuingAttribute クラス新しインスタンス初期化してオプションキュー サポート無効にます。

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

Dim enabled As Boolean

Dim instance As New InterfaceQueuingAttribute(enabled)
public InterfaceQueuingAttribute (
    bool enabled
)
public:
InterfaceQueuingAttribute (
    bool enabled
)
public InterfaceQueuingAttribute (
    boolean enabled
)
public function InterfaceQueuingAttribute (
    enabled : boolean
)

パラメータ

enabled

キュー サポート有効にする場合trueそれ以外場合false

使用例使用例

新しInterfaceQueuingAttribute作成するコード例次に示します

<InterfaceQueuing(True)>  _
Public Interface IInterfaceQueuingAttribute_Ctor_Bool
End Interface 'IInterfaceQueuingAttribute_Ctor_Bool
[InterfaceQueuing(true)]
public interface IInterfaceQueuingAttribute_Ctor_Bool
{
}
[InterfaceQueuing(true)]
interface class IInterfaceQueuingAttribute_Ctor_Bool{};
/** @attribute InterfaceQueuing(true)
 */
public interface IInterfaceQueuingAttribute_Ctor_Bool
{
} //IInterfaceQueuingAttribute_Ctor_Bool
.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
InterfaceQueuingAttribute クラス
InterfaceQueuingAttribute メンバ
System.EnterpriseServices 名前空間

InterfaceQueuingAttribute プロパティ


InterfaceQueuingAttribute メソッド


パブリック メソッドパブリック メソッド

( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttribute  オーバーロードされますアセンブリモジュール、型のメンバ、またはメソッド パラメータ適用され指定した型のカスタム属性取得します。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされますアセンブリモジュール、型のメンバ、またはメソッド パラメータ適用されカスタム属性配列取得します。 ( Attribute から継承されます。)
パブリック メソッド GetHashCode  このインスタンスハッシュ コード返します。 ( Attribute から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 ( Object から継承されます。)
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラス既定値かどうか示します。 ( Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます指定した型のカスタム属性が、アセンブリモジュール、型のメンバ、またはメソッド パラメータ適用されているかどうか判断します。 ( Attribute から継承されます。)
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンス等しかどうかを示す値を返します。 ( Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 ( Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 ( Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

InterfaceQueuingAttribute クラス
System.EnterpriseServices 名前空間

InterfaceQueuingAttribute メンバ

マークされインターフェイスキュー サポート有効にます。このクラス継承できません。

InterfaceQueuingAttribute データ型公開されるメンバを以下の表に示します


パブリック コンストラクタパブリック コンストラクタ
  名前 説明
パブリック メソッド InterfaceQueuingAttribute オーバーロードされます。 InterfaceQueuingAttribute クラス新しインスタンス初期化してキュー サポート有効にます。
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
( プロテクト メソッド参照)
  名前 説明
パブリック メソッド Equals  オーバーロードされます。 ( Attribute から継承されます。)
パブリック メソッド GetCustomAttribute  オーバーロードされますアセンブリモジュール、型のメンバ、またはメソッド パラメータ適用され指定した型のカスタム属性取得します。 (Attribute から継承されます。)
パブリック メソッド GetCustomAttributes  オーバーロードされますアセンブリモジュール、型のメンバ、またはメソッド パラメータ適用されカスタム属性配列取得します。 (Attribute から継承されます。)
パブリック メソッド GetHashCode  このインスタンスハッシュ コード返します。 (Attribute から継承されます。)
パブリック メソッド GetType  現在のインスタンスType取得します。 (Object から継承されます。)
パブリック メソッド IsDefaultAttribute  派生クラス内でオーバーライドされたときに、このインスタンスの値が派生クラス既定値かどうか示します。 (Attribute から継承されます。)
パブリック メソッド IsDefined  オーバーロードされます指定した型のカスタム属性が、アセンブリモジュール、型のメンバ、またはメソッド パラメータ適用されているかどうか判断します。 (Attribute から継承されます。)
パブリック メソッド Match  派生クラス内でオーバーライドされたときに、指定したオブジェクトとこのインスタンス等しかどうかを示す値を返します。 (Attribute から継承されます。)
パブリック メソッド ReferenceEquals  指定した複数Object インスタンス同一かどうか判断します。 (Object から継承されます。)
パブリック メソッド ToString  現在の Object を表す String返します。 (Object から継承されます。)
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

InterfaceQueuingAttribute クラス
System.EnterpriseServices 名前空間



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

辞書ショートカット

すべての辞書の索引

「InterfaceQueuingAttribute」の関連用語

InterfaceQueuingAttributeのお隣キーワード
検索ランキング

   

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



InterfaceQueuingAttributeのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS