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

FileFolderExtensions.PublishFile Method

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

Publishes a file existing on a server url

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

Syntax

public static void PublishFile(this Web web, String serverRelativeUrl, String comment)

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  The web to process

serverRelativeUrl

  Type: System.String
  the server relative url of the file to publish

comment

  Type: System.String
  Comment recorded with the publish action

Return Value

Type: void

See also

© 2018 Microsoft