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

返回或设置一个字符串, 指定该联系人的未解析的完整全名。Returns or sets a String specifying the whole, unparsed full name for the contact. 读/写。Read/write.

语法Syntax

表达式FullNameexpression.FullName

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

说明Remarks

此属性将解析为**FirstName称谓LastName后缀** 属性, 如果分析不正确, 则可以对其进行单独更改或键入。This property is parsed into the FirstName, MiddleName, LastName, and Suffix properties, which may be changed or typed independently if they are parsed incorrectly. 任何更改或输入 名字姓氏称谓后缀 属性将被覆盖的任何后续更改或 输入Any changes or entries to the FirstName, LastName, MiddleName, or Suffix properties will be overwritten by any subsequent changes or entries to FullName.

示例Example

本 Visual Basic for Applications (VBA) 示例使用**Restrict** 方法基于项目的**LastModificationTime** 属性将筛选器应用于联系人项目, 然后显示由筛选器返回的联系人的完整名称。This Visual Basic for Applications (VBA) example uses the Restrict method to apply a filter to the contact items based on the item's LastModificationTime property, and then it displays the full name of the contacts returned by the filter.

Public Sub ContactDateCheck() 
 
 Dim myNamespace As Outlook.NameSpace 
 
 Dim myContacts As Outlook.Items 
 
 Dim myItems As Outlook.Items 
 
 Dim myItem As Object 
 
 
 
 Set myNamespace = Application.GetNamespace("MAPI") 
 
 Set myContacts = myNamespace.GetDefaultFolder(olFolderContacts).Items 
 
 Set myItems = myContacts.Restrict("[LastModificationTime] > '01/1/2003'") 
 
 For Each myItem In myItems 
 
 If (myItem.Class = olContact) Then 
 
 MsgBox myItem.FullName & ": " & myItem.LastModificationTime 
 
 End If 
 
 Next 
 
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.