コレクション内の指定したインデックス位置に、指定した CompilerError を挿入します。
Public Sub Insert( _
ByVal index As Integer, _ ByVal value As CompilerError _)
[C#]
public void Insert(intindex,CompilerErrorvalue);
[C++]
public: void Insert(intindex,CompilerError* value);
[JScript]
public function Insert(
index : int,value : CompilerError);
パラメータ
- index
コンパイラ エラーを挿入する位置の 0 から始まるインデックス番号。 - value
挿入する CompilerError 。
使用例
' Inserts a CompilerError at index 0 of the collection.
collection.Insert(0, New CompilerError("Testfile.cs", 5, 10, "CS0001", "Example error text"))
[C#]
// Inserts a CompilerError at index 0 of the collection.
collection.Insert( 0, new CompilerError("Testfile.cs", 5, 10, "CS0001", "Example error text") );
[C++]
// Inserts a CompilerError at index 0 of the collection.
collection->Insert(0, 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 名前空間 | Add