ParserErrorCollection.Contains Method (ParserError)
Determines whether the ParserError object is located in the collection.
Assembly: System.Web (in System.Web.dll)
You cannot add the same ParserError object to the collection more than once. However, attempting to add a ParserError object more than once will not throw an exception. Instead, the addition will fail. In this case, the Add method will return a value of –1. However, the AddRange and Insert methods do not have return values. When adding ParserError objects by using one of these methods, use the method to determine whether a particular ParserError object is already in the collection.
Available since 2.0