Partager via


Attachment.FileName Property

Returns a String (string in C#) representing the file name of the attachment. Read-only.

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

Syntax

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

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

Property Value

Type: System.String

Remarks

Use this property in conjunction with the PathName property.

See Also

Reference

Attachment Interface

Attachment Members

Microsoft.Office.Interop.Outlook Namespace