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

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


expressionexpression. Email1AddressType

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


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


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

Sub SetType() 
 Dim myItem As Outlook.ContactItem 
 Set myItem = Application.CreateItem(olContactItem) 
 myItem.Email1Address = "" 
 myItem.Email1AddressType = "SMTP" 
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.