Table of contents
TOC
Collapse the table of content
Expand the table of content

FileFolderExtensions.GetFile Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Gets a file in a document library.

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static File GetFile(this Folder folder, String fileName)

Parameters

folder

  Type: Microsoft.SharePoint.Client.Folder
  Folder containing the target file.

fileName

  Type: System.String
  File name.

Return Value

Type: File
The target file if found, null if no file is found.

See also

© 2018 Microsoft