다음을 통해 공유


FullName Property

Returns or sets a String specifying the whole, unparsed full name for the contact. Read/write.

expression**.FullName**

*expression   * Required. An expression that returns a ContactItem object.

Remarks

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

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 myOlApp As Outlook.Application
    Dim myNamespace As Outlook.NameSpace
    Dim myContacts As Outlook.Items
    Dim myItems As Outlook.Items
    Dim myItem As Object
    Set myOlApp = CreateObject("Outlook.Application")
    Set myNamespace = myOlApp.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

Applies to | ContactItem Object

See Also | Email1DisplayName Property | Email2DisplayName Property | Email3DisplayName Property | FirstName Property | LastFirstAndSuffix Property | LastFirstNoSpace Property | LastFirstSpaceOnly Property | LastName Property | LastNameAndFirstName Property | MiddleName Property | Suffix Property