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

BrandingExtensions.UploadThemeFile Method

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

Uploads the specified file (usually an spcolor or spfont file) to the web site themes gallery (usually only exists in the root web of a site collection).

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

Syntax

public static File UploadThemeFile(this Web web, String fileName, Stream localStream, String themeFolderVersion = "15")

Parameters

web

  Type: Microsoft.SharePoint.Client.Web
  Web site to upload to

fileName

  Type: System.String
  Name of the file to upload

localStream

  Type: System.IO.Stream
  Stream containing the contents of the file

(optional) themeFolderVersion

  Type: System.String
  Leaf folder name to upload to; default is "15"

Return Value

Type: File
The uploaded file, with at least the ServerRelativeUrl property available

See also

© 2018 Microsoft