Partager via


_ContactItem.LastName Property

Returns or sets a String (string in C#) representing the last name for the contact. Read/write.

Namespace:  Microsoft.Office.Interop.Outlook
Assembly:  Microsoft.Office.Interop.Outlook (in Microsoft.Office.Interop.Outlook.dll)

Syntax

'Declaration
<DispIdAttribute()> _
Property LastName As String
    Get
    Set
'Usage
Dim instance As _ContactItem
Dim value As String

value = instance.LastName

instance.LastName = value
[DispIdAttribute()]
string LastName { get; set; }

Property Value

Type: System.String

Remarks

This property is parsed from the FullName property, but may be changed or entered independently should it be parsed incorrectly. Note that any such changes or entries to this property will be overwritten by any subsequent changes of entries to FullName.

See Also

Reference

_ContactItem Interface

_ContactItem Members

Microsoft.Office.Interop.Outlook Namespace

Other Resources

How to: Create a Contact Item

How to: Create a Custom Contact Item