Back to product page

RemoveAll Method


Removes all headers from the collection.

Syntax

  • Basic
object.RemoveAll()
The RemoveAll(object) syntax has these parts:
objectAn expression evaluating to an object of type SmtpHdrs

Remarks

RemoveAll method will delete all the header objects from the headers collection. After calling this method, headers collection will be empty. If you wish to add new headers, you should use Add method.

Platforms

Windows