Share via


AttachmentCollection.GetByFileName method

Gets the attachment that is represented by the specified file name.

Namespace:  Microsoft.SharePoint.Client
Assembly:  Microsoft.SharePoint.Client (in Microsoft.SharePoint.Client.dll)

Syntax

'Declaration
Public Function GetByFileName ( _
    fileName As String _
) As Attachment
'Usage
Dim instance As AttachmentCollection
Dim fileName As String
Dim returnValue As Attachment

returnValue = instance.GetByFileName(fileName)
public Attachment GetByFileName(
    string fileName
)

Parameters

  • fileName
    Type: System.String

    The file name that represents the attachment to retrieve.

Return value

Type: Microsoft.SharePoint.Client.Attachment
The attachment.

See also

Reference

AttachmentCollection class

AttachmentCollection members

Microsoft.SharePoint.Client namespace