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

ParserError クラス

メモ : このクラスは、.NET Framework version 2.0 で新しく追加されたものです。

パーサーのエラーまたは警告を表します。このクラスは継承できません。

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

<SerializableAttribute> _
Public NotInheritable Class
 ParserError
[SerializableAttribute] 
public sealed class ParserError
[SerializableAttribute] 
public ref class ParserError sealed
/** @attribute SerializableAttribute() */ 
public final class ParserError
SerializableAttribute 
public final class ParserError
解説解説
使用例使用例

新しいパーサー エラーを ParserErrorCollection オブジェクトに追加する方法を次のコード例に示します。

' Add a ParserError to the collection.
collection.Add(New ParserError("ErrorName",
 "Path", 1))
// Add a ParserError to the collection.
collection.Add(new ParserError("ErrorName", "Path",
 1));
.NET Framework のセキュリティ.NET Framework のセキュリティ
継承階層継承階層
System.Object
  System.Web.ParserError
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ParserError メンバ
System.Web 名前空間
ParserErrorCollection
HttpException クラス
HttpParseException クラス

ParserError コンストラクタ ()

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

ParserError クラスの新しいインスタンスを初期化します。

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

public ParserError ()
public:
ParserError ()
public ParserError ()
使用例使用例

ParserError クラスの空のインスタンスを初期化する方法とそのプロパティを使用する方法を次のコード例に示します。

Dim myParserError As New
 ParserError()
myParserError.ErrorText = "My Error Text"
myParserError.Line = 5
myParserError.VirtualPath = "MyPath"
ParserError MyParserError = new ParserError();

MyParserError.ErrorText = "My Error Text";

MyParserError.Line = 5;

MyParserError.VirtualPath = "MyPath";
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照

ParserError コンストラクタ


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

メモ : このコンストラクタは、.NET Framework version 2.0 で新しく追加されたものです。

指定したエラー テキスト、仮想パス、およびソース行番号を使用して、ParserError クラスの新しいインスタンスを初期化します。

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

Public Sub New ( _
    errorText As String, _
    virtualPath As String, _
    line As Integer _
)
Dim errorText As String
Dim virtualPath As String
Dim line As Integer

Dim instance As New ParserError(errorText,
 virtualPath, line)
public ParserError (
    string errorText,
    string virtualPath,
    int line
)
public:
ParserError (
    String^ errorText, 
    String^ virtualPath, 
    int line
)
public ParserError (
    String errorText, 
    String virtualPath, 
    int line
)
public function ParserError (
    errorText : String, 
    virtualPath : String, 
    line : int
)

パラメータ

errorText

エラー メッセージ テキスト。

virtualPath

エラーの発生時に解析されていたファイルの仮想パス。

line

エラー ソースの行番号。

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

ParserError プロパティ


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

参照参照

関連項目

ParserError クラス
System.Web 名前空間
ParserErrorCollection
HttpException クラス
HttpParseException クラス

ParserError メソッド


ParserError メンバ

パーサーのエラーまたは警告を表します。このクラスは継承できません。

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


パブリック コンストラクタパブリック コンストラクタ
パブリック プロパティパブリック プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
参照参照

関連項目

ParserError クラス
System.Web 名前空間
ParserErrorCollection
HttpException クラス
HttpParseException クラス



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「ParserError」の関連用語

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

   

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



ParserErrorのページの著作権

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

©2026 GRAS Group, Inc.RSS