Adds a System.Web.Configuration.CustomError object to the collection.
- customError
- The System.Web.Configuration.CustomError object to add already exists in the collection or the collection is read only.
Before adding a custom error to the collection, you must create a System.Web.Configuration.CustomError error object and initialize the CustomError.Redirect and CustomError.StatusCode properties.