Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- wodSmtp
- Methods
- Properties
- Authentication
- Blocking
- Certificate
- CharSet
- DNSHostname
- Hostname
- LastError
- LastErrorText
- Login
- MailFrom
- MailTo
- Message
- MyHostname
- MyIP
- Notification
- Password
- Port
- ProxyHostname
- ProxyLogin
- ProxyPassword
- ProxyPort
- ProxyType
- RequestReceipt
- RetryCount
- RetryWait
- Security
- State
- StateText
- Tag
- Timeout
- Transcript
- UseIPv6
- Version
- Events
- IwodSmtpClientNotify
- SmtpEncoder
- SmtpHdr
- SmtpHdrs
- SmtpMsg
- SmtpMsgs
- wodSmtp
- How to get support?
- Technical information
- Fast notifications interface
- Error list
Remove Method
Removes header from the collection.
Syntax
- Basic
object.Remove (Index)
The Remove(object,Index) syntax has these parts:
The Remove(object,Index) syntax has these parts:
object | An expression evaluating to an object of type SmtpHdrs |
Index | Required. A Variant value. Integer value that specifies header index, string expression that specifies header name, or reference to Header object 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, wodSmtp starts counting headers from 0.
If Index doesn't exist in the collection, an error will be returned.