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

FileFolderExtensions.PublishFileToLevel Method

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

Publishes a file based on the type of versioning required on the parent library.

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

Syntax

public static void PublishFileToLevel(this File file, FileLevel level)

Parameters

file

  Type: Microsoft.SharePoint.Client.File
  Target file to publish.

level

  Type: Microsoft.SharePoint.Client.FileLevel
  Target publish direction (Draft and Published only apply, Checkout is ignored).

Return Value

Type: void

See also

© 2018 Microsoft