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

MessageQueueException クラス

Microsoft メッセージ キュー内部エラーが発生した場合スローされる例外

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

<SerializableAttribute> _
Public Class MessageQueueException
    Inherits ExternalException
    Implements ISerializable
Dim instance As MessageQueueException
[SerializableAttribute] 
public class MessageQueueException : ExternalException,
 ISerializable
[SerializableAttribute] 
public ref class MessageQueueException : public
 ExternalException, ISerializable
/** @attribute SerializableAttribute() */ 
public class MessageQueueException extends
 ExternalException implements ISerializable
SerializableAttribute 
public class MessageQueueException extends
 ExternalException implements ISerializable
解説解説
使用例使用例
Imports System
Imports System.Messaging



Public Class MyNewQueue


        
        ' Provides an entry point into the application.
        '         
        ' This example verifies existence and attempts to 
        ' delete a queue.
        

        Public Shared Sub
 Main()

            ' Determine whether the queue exists.
            If MessageQueue.Exists(".\myQueue")
 Then

                Try

                    ' Delete the queue.
                    MessageQueue.Delete(".\myQueue")

                Catch e As MessageQueueException

                    If e.MessageQueueErrorCode = _
                        MessageQueueErrorCode.AccessDenied Then

                        Console.WriteLine("Access is denied. "
 _
                            + "Queue might be a system queue.")
                    End If

                    ' Handle other sources of exceptions as necessary.

                End Try

            End If


            Return

        End Sub 'Main

End Class 'MyNewQueue 

using System;
using System.Messaging;

namespace MyProject
{
    /// <summary>
    /// Provides a container class for the example.
    /// </summary>
    public class MyNewQueue
    {

        //**************************************************
        // Provides an entry point into the application.
        //         
        // This example verifies existence and attempts to 
        // delete a queue.
        //**************************************************

        public static void
 Main()
        {

            // Determine whether the queue exists.
            if (MessageQueue.Exists(".\\myQueue"))
            {
                try
                {
                    // Delete the queue.
                    MessageQueue.Delete(".\\myQueue");
                }
                catch(MessageQueueException e)
                {
                    if(e.MessageQueueErrorCode == 
                        MessageQueueErrorCode.AccessDenied)
                    {
                        Console.WriteLine("Access is denied. " + 
                            "Queue might be a system queue.");
                    }

                    // Handle other sources of MessageQueueException.
                }

            }
        
            return;
        }

    }
}
#using <system.dll>
#using <system.messaging.dll>

using namespace System;
using namespace System::Messaging;
int main()
{
   
   // Determine whether the queue exists.
   if ( MessageQueue::Exists( ".\\myQueue" ) )
   {
      try
      {
         
         // Delete the queue.
         MessageQueue::Delete( ".\\myQueue" );
      }
      catch ( MessageQueueException^ e ) 
      {
         if ( e->MessageQueueErrorCode == MessageQueueErrorCode::AccessDenied
 )
         {
            Console::WriteLine( "Access is denied. Queue might be a system queue."
 );
         }
         
         // Handle other sources of MessageQueueException.
      }

   }

   return 0;
}

package MyProject;

import System.*;
import System.Messaging.*;

/// <summary>
/// Provides a container class for the example.
/// </summary>
public class MyNewQueue
{
    //**************************************************
    // Provides an entry point into the application.
    //         
    // This example verifies existence and attempts to 
    // delete a queue.
    //**************************************************
    public static void main(String[]
 args)
    {
        // Determine whether the queue exists.
        if (MessageQueue.Exists(".\\myQueue")) {
            try {
                // Delete the queue.
                MessageQueue.Delete(".\\myQueue");
            }
            catch (MessageQueueException e) {
                if (e.get_MessageQueueErrorCode().
                    Equals(MessageQueueErrorCode.AccessDenied)) {
                    Console.WriteLine("Access is denied. "
                        + "Queue might be a system queue.");
                }
                // Handle other sources of MessageQueueException.
            }
        }        
        return;
    } //main
} //MyNewQueue 
継承階層継承階層
System.Object
   System.Exception
     System.SystemException
       System.Runtime.InteropServices.ExternalException
        System.Messaging.MessageQueueException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

MessageQueueException コンストラクタ

シリアル化したデータ使用してMessageQueueException クラス新しインスタンス初期化します。

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

Protected Sub New ( _
    info As SerializationInfo, _
    context As StreamingContext _
)
Dim info As SerializationInfo
Dim context As StreamingContext

Dim instance As New MessageQueueException(info,
 context)
protected MessageQueueException (
    SerializationInfo info,
    StreamingContext context
)
protected:
MessageQueueException (
    SerializationInfo^ info, 
    StreamingContext context
)
protected MessageQueueException (
    SerializationInfo info, 
    StreamingContext context
)
protected function MessageQueueException (
    info : SerializationInfo, 
    context : StreamingContext
)

パラメータ

info

MessageQueueException と関連付けられているシリアル化データ保持する SerializationInfo。

context

MessageQueueException関連付けられているシリアル化ストリームソースおよびデスティネーション格納している StreamingContext。

.NET Framework のセキュリティ.NET Frameworkセキュリティ
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
MessageQueueException クラス
MessageQueueException メンバ
System.Messaging 名前空間

MessageQueueException プロパティ


パブリック プロパティパブリック プロパティ

プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外割り当てられているコード化数値である HRESULT を取得または設定します。 ( Exception から継承されます。)
参照参照

関連項目

MessageQueueException クラス
System.Messaging 名前空間
MessageQueueErrorCode 列挙
MessageQueue クラス
Message クラス

MessageQueueException メソッド


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

プロテクト メソッドプロテクト メソッド
参照参照

関連項目

MessageQueueException クラス
System.Messaging 名前空間
MessageQueueErrorCode 列挙
MessageQueue クラス
Message クラス

MessageQueueException メンバ

Microsoft メッセージ キュー内部エラーが発生した場合スローされる例外

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


プロテクト コンストラクタプロテクト コンストラクタ
  名前 説明
プロテクト メソッド MessageQueueException シリアル化したデータ使用してMessageQueueException クラス新しインスタンス初期化します。
パブリック プロパティパブリック プロパティ
プロテクト プロパティプロテクト プロパティ
  名前 説明
プロテクト プロパティ HResult  特定の例外割り当てられているコード化数値である HRESULT を取得または設定します。(Exception から継承されます。)
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

MessageQueueException クラス
System.Messaging 名前空間
MessageQueueErrorCode 列挙
MessageQueue クラス
Message クラス


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

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

辞書ショートカット

すべての辞書の索引

「MessageQueueException」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS