Partager via


Attachment.Index Property

Returns an Integer (int in C#) value indicating the position of the object within the collection. Read-only.

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

Syntax

'Declaration
<DispIdAttribute()> _
ReadOnly Property Index As Integer
    Get
'Usage
Dim instance As Attachment
Dim value As Integer

value = instance.Index
[DispIdAttribute()]
int Index { get; }

Property Value

Type: System.Int32

Remarks

The Index property is only valid during the current session and can change as objects are added to and deleted from the collection. The first object in the collection has an Index value of 1.

See Also

Reference

Attachment Interface

Attachment Members

Microsoft.Office.Interop.Outlook Namespace