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

FileFolderExtensions.SetFileProperties Method

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

Sets file properties using a dictionary.

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

Syntax

public static void SetFileProperties(this File file, IDictionary<String, String> properties, Boolean checkoutIfRequired = True)

Parameters

file

  Type: Microsoft.SharePoint.Client.File
  Target file object.

properties

  Type: System.Collections.Generic.IDictionary<System.String, System.String>
  Dictionary of properties to set.

(optional) checkoutIfRequired

  Type: System.Boolean
  Check out the file if necessary to set properties.

Return Value

Type: void

See also

© 2018 Microsoft