HeaderFields Collection : Find Method |
Visual Basic |
---|
Public Function Find( _ ByVal Label As LabelConstants, _ Optional ByVal LabelString As String, _ Optional ByRef StartAfter As Long = 0 _ ) As String |
Value | Description |
---|---|
msgAlsoControl | "Also-Control:" |
msgAlternateRecipient | "Alternate-Recipient:" |
msgApparentlyTo | "Apparently-To:" |
msgApproved | "Approved:" |
msgArticleNames | "Article-Names:" |
msgArticleUpdates | "Article-Updates:" |
msgAutoForwarded | "Auto-Forwarded:" |
msgComments | "Comments:" |
msgContentBase | "Content-Base:" |
msgContentConversion | "Content-Conversion:" |
msgContentDescription | "Content-Description:" |
msgContentDisposition | "Content-Disposition:" |
msgContentID | "Content-ID:" |
msgContentIdentifier | "Content-Identifier:" |
msgContentLanguage | "Content-Language:" |
msgContentLength | "Content-Length:" |
msgContentLocation | "Content-Location:" |
msgContentMD5 | "Content-MD5:" |
msgContentReturn | "Content-Return:" |
msgContentSGMLEntity | "Content-SGML-Entity:" |
msgContentTransferEncoding | "Content-Transfer-Encoding:" |
msgContentType | "Content-Type:" |
msgControl | "Control:" |
msgConversion | "Conversion:" |
msgConversionWithLoss | "Conversion-With-Loss:" |
msgDate | "Date:" |
msgDeliveryDate | "Delivery-Date:" |
msgDeliveryReport | "Delivery-Report:" |
msgDiscardedX400IPMSExtensions | "Discarded-X400-IPMS-Extensions:" |
msgDiscardedX400MTSExtensions | "Discarded-X400-MTS-Extensions:" |
msgDiscloseRecipients | "Disclose-Recipients:" |
msgDistribution | "Distribution:" |
msgDLExpansionHistoryIndication | "DL-Expansion-History-Indication:" |
msgEncoding | "Encoding:" |
msgErrorsTo | "Errors-To:" |
msgExpires | "Expires:" |
msgFax | "Fax:" |
msgFcc | "Fcc:" |
msgFollowupTo | "Followup-To:" |
msgForComment | "For-Comment:" |
msgForHandling | "For-Handling:" |
msgFrom | "From:" |
msgGenerateDeliveryReport | "Generate-Delivery-Report:" |
msgImportance | "Importance:" |
msgIncompleteCopy | "In-Reply-To:" |
msgInReplyTo | "Incomplete-Copy:" |
msgKeywords | "Keywords:" |
msgLanguage | "Language:" |
msgLines | "Lines:" |
msgMailer | "Mailer:" |
msgMailSystemVersion | "Mail-System-Version:" |
msgMessageID | "Message-ID" |
msgMessageType | "Message-Type:" |
msgMIMEVersion | "MIME-Version:" |
msgNewsgroups | "Newsgroups:" |
msgNull | N/A |
msgObsoletes | "Obsoletes:" |
msgOrganisation | "Organisation:" |
msgOrganization | "Organization:" |
msgOriginalEncodedInformationTypes | "Original-Encoded-Information-Types:" |
msgOriginatingClient | "Originating-Client:" |
msgPath | "Path:" |
msgPhone | "Phone:" |
msgPrecedence | "Precedence:" |
msgPreventNonDeliveryReport | "Prevent-NonDelivery-Report:" |
msgPriority | "Priority:" |
msgReceived | "Received:" |
msgReferences | "References:" |
msgReplyBy | "Reply-By:" |
msgReplyTo | "Reply-To:" |
msgReturnPath | "Return-Path:" |
msgReturnReceiptTo | "Return-Receipt-To:" |
msgSeeAlso | "See-Also:" |
msgSender | "Sender:" |
msgSensitivity | "Sensitivity:" |
msgStatus | "Status:" |
msgSubject | "Subject:" |
msgSummary | "Summary:" |
msgSupersedes | "Supersedes:" |
msgTelefax | "Telefax:" |
msgX400ContentReturn | "X400-Content-Return:" |
msgXMailer | "X-Mailer:" |
msgXNewsreader | "X-Newsreader:" |
msgXref | "Xref:" |
This method searches the collection for a label. On return, StartAfter is updated to reflect the index of the label found; this allows you to find multiple header fields that have the same label.
StartAfter cannot be a constant because the method updates its value. Providing a constant value for StartAfter generates a run-time error. Specifying StartAfter with a value of zero starts the search at the head of the collection. StartAfter is set to 0 and "" is returned if the item is not found.
This method may generate the following error code (refer to MailErrorConstants for a complete list of error codes):