wodSmtpServer ActiveX Control - Remove Method
      
 

Description

Removes header from the collection.


Return Type

None  


Syntax

object.Remove Index



The Remove Method syntax has these parts:

Part Description
object An expression evaluating to an object of type SmtpHeaders.
Index Required. A Variant value. Specifies header index, header name, or holds reference to the header to remove.

Remarks

Remove method will delete specific Header object from the headers collection. Index parameter should be either Integer value that represents header index, or reference to Header object you wish to delete from the collection.

Integer value Index should be between 0 and Count-1, since unlike VB, wodSmtpServer starts counting headers from 0.

If Index doesn't exist in the collection, an error will be returned.