指定した CompilerError をエラー コレクションに追加します。
Public Function Add( _
ByVal value As CompilerError _) As Integer
[C#]
public int Add(CompilerErrorvalue);
[C++]
public: int Add(CompilerError* value);
[JScript]
public function Add(
value : CompilerError) : int;
パラメータ
- value
追加する CompilerError 。
戻り値
新しい要素が挿入された位置のインデックス。
使用例
' Adds a CompilerError to the collection.
collection.Add(New CompilerError("Testfile.cs", 5, 10, "CS0001", "Example error text"))
[C#]
// Adds a CompilerError to the collection.
collection.Add( new CompilerError("Testfile.cs", 5, 10, "CS0001", "Example error text") );
[C++]
// Adds a CompilerError to the collection.
collection->Add(new CompilerError(S"Testfile::cs", 5, 10, S"CS0001", S"Example error text"));
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン をクリックします。
必要条件
プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ
参照
CompilerErrorCollection クラス | CompilerErrorCollection メンバ | System.CodeDom.Compiler 名前空間 | AddRange