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

XmlException クラス

最後例外に関する詳細情報返します

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

<SerializableAttribute> _
Public Class XmlException
    Inherits SystemException
[SerializableAttribute] 
public class XmlException : SystemException
[SerializableAttribute] 
public ref class XmlException : public
 SystemException
/** @attribute SerializableAttribute() */ 
public class XmlException extends SystemException
SerializableAttribute 
public class XmlException extends
 SystemException
継承階層継承階層
System.Object
   System.Exception
     System.SystemException
      System.Xml.XmlException
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバ場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

XmlException コンストラクタ ()


XmlException コンストラクタ (String, Exception)

XmlException クラス新しインスタンス初期化します。

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

Public Sub New ( _
    message As String, _
    innerException As Exception _
)
Dim message As String
Dim innerException As Exception

Dim instance As New XmlException(message,
 innerException)
public XmlException (
    string message,
    Exception innerException
)
public:
XmlException (
    String^ message, 
    Exception^ innerException
)
public XmlException (
    String message, 
    Exception innerException
)
public function XmlException (
    message : String, 
    innerException : Exception
)

パラメータ

message

エラー状態の説明

innerException

XmlExceptionスローした Exception (存在する場合)。この値は、null 参照 (Visual Basic では Nothing) の場合あります

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

XmlException コンストラクタ (String)


XmlException コンストラクタ (SerializationInfo, StreamingContext)

SerializationInfo オブジェクトおよび StreamingContext オブジェクト情報使用してXmlException クラス新しインスタンス初期化します。

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

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

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

パラメータ

info

XmlExceptionすべてのプロパティ格納している SerializationInfo オブジェクト

context

コンテキスト情報格納している StreamingContext オブジェクト

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

XmlException コンストラクタ (String, Exception, Int32, Int32)

指定したメッセージ内部例外行番号、行の位置使用してXmlException クラス新しインスタンス初期化します。

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

Public Sub New ( _
    message As String, _
    innerException As Exception, _
    lineNumber As Integer, _
    linePosition As Integer _
)
Dim message As String
Dim innerException As Exception
Dim lineNumber As Integer
Dim linePosition As Integer

Dim instance As New XmlException(message,
 innerException, lineNumber, linePosition)
public XmlException (
    string message,
    Exception innerException,
    int lineNumber,
    int linePosition
)
public:
XmlException (
    String^ message, 
    Exception^ innerException, 
    int lineNumber, 
    int linePosition
)
public XmlException (
    String message, 
    Exception innerException, 
    int lineNumber, 
    int linePosition
)
public function XmlException (
    message : String, 
    innerException : Exception, 
    lineNumber : int, 
    linePosition : int
)

パラメータ

message

エラー説明

innerException

現在の例外の原因である例外。この値は、null 参照 (Visual Basic では Nothing) の場合あります

lineNumber

エラー発生場所を示す行番号

linePosition

エラー発生場所を示す行の位置

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

XmlException コンストラクタ


XmlException プロパティ


XmlException メソッド


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

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

関連項目

XmlException クラス
System.Xml 名前空間

XmlException メンバ

最後例外に関する詳細情報返します

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


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

関連項目

XmlException クラス
System.Xml 名前空間



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

辞書ショートカット

すべての辞書の索引

「XmlException」の関連用語

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

   

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



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

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

©2025 GRAS Group, Inc.RSS