Partager via


_ContactItem.MailingAddressPostalCode Property

Returns or sets a String (string in C#) representing the postal code (zip code) portion of the selected mailing address of the contact. Read/write.

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

Syntax

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

value = instance.MailingAddressPostalCode

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

Property Value

Type: System.String

Remarks

This property replicates the property indicated by the SelectedMailingAddress property, which is one of the following OlMailingAddress constants: olBusiness, olHome, olNone, or olOther. While it can be changed or entered independently, any such changes or entries to this property will be overwritten by any subsequent changes or entries to the property indicated by SelectedMailingAddress.

See Also

Reference

_ContactItem Interface

_ContactItem Members

Microsoft.Office.Interop.Outlook Namespace