ContactItem 属性 (Outlook)ContactItem.Email2AddressType property (Outlook)

返回或设置一个字符串, 表示联系人的第二个电子邮件条目的地址类型 (如 EX 或 SMTP)。Returns or sets a String representing the address type (such as EX or SMTP) of the second email entry for the contact. 读/写。Read/write.

语法Syntax

expressionexpression. Email2AddressType

_表达式_一个代表ContactItem对象的变量。expression A variable that represents a ContactItem object.

说明Remarks

这是一个自由格式的文本字段, 但它必须与现有电子邮件传输的实际类型相匹配。This is a free-form text field, but it must match the actual type of an existing email transport.

示例Example

本 Visual Basic for Applications (VBA) 示例将联系人第二个电子邮件条目的地址类型设置为 "SMTP"。This Visual Basic for Applications (VBA) example sets "SMTP" as the address type for the second email entry of a contact.

Sub SetType() 
 
 Dim myItem As Outlook.ContactItem 
 
 
 
 Set myItem = Application.CreateItem(olContactItem) 
 
 myItem.Email2Address = "someone@example.com" 
 
 myItem.Email2AddressType = "SMTP" 
 
 myItem.Display 
 
End Sub

另请参阅See also

创建 ContactItem 对象ContactItem Object

支持和反馈Support and feedback

有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.