ParserErrorCollection.Remove(ParserError) Metode
Definisi
Penting
Beberapa informasi terkait produk prarilis yang dapat diubah secara signifikan sebelum dirilis. Microsoft tidak memberikan jaminan, tersirat maupun tersurat, sehubungan dengan informasi yang diberikan di sini.
Menghapus objek yang ditentukan ParserError dari koleksi.
public:
void Remove(System::Web::ParserError ^ value);
public void Remove(System.Web.ParserError value);
member this.Remove : System.Web.ParserError -> unit
Public Sub Remove (value As ParserError)
Parameter
- value
- ParserError
untuk ParserError menghapus dari koleksi.
Contoh
Contoh kode berikut menunjukkan cara menghapus ParserError dari indeks yang ditentukan dalam ParserErrorCollection objek.
// Insert a ParserError at index 0 of the collection.
ParserError error = new ParserError("Error", "Path", 1);
collection.Insert(0, error);
// Remove the specified ParserError from the collection.
collection.Remove(error);
' Insert a ParserError at index 0 of the collection.
Dim [error] As New ParserError("Error", "Path", 1)
collection.Insert(0, [error])
' Remove the specified ParserError from the collection.
collection.Remove([error])
Keterangan
Remove Gunakan metode untuk menghapus ParserError objek dari koleksi saat Anda memiliki referensi ke ParserError.