Table of Contents

Interface IBrandingManager

Namespace
PnP.Core.Model.SharePoint
Assembly
PnP.Core.dll

Enables branding changes for the site (the options that appear under "change the look" under the gear icon in SharePoint)

public interface IBrandingManager

Methods

GetAvailableThemes()

Lists the available themes for this web

List<ITheme> GetAvailableThemes()

Returns

List<ITheme>

List of IThemeinstances

GetAvailableThemesAsync()

Lists the available themes for this web

Task<List<ITheme>> GetAvailableThemesAsync()

Returns

Task<List<ITheme>>

List of IThemeinstances

GetAvailableThemesBatch()

Lists the available themes for this web

IEnumerableBatchResult<ITheme> GetAvailableThemesBatch()

Returns

IEnumerableBatchResult<ITheme>

List of IThemeinstances

GetAvailableThemesBatch(Batch)

Lists the available themes for this web

IEnumerableBatchResult<ITheme> GetAvailableThemesBatch(Batch batch)

Parameters

batch Batch

Batch to add this request to

Returns

IEnumerableBatchResult<ITheme>

List of IThemeinstances

GetAvailableThemesBatchAsync()

Lists the available themes for this web

Task<IEnumerableBatchResult<ITheme>> GetAvailableThemesBatchAsync()

Returns

Task<IEnumerableBatchResult<ITheme>>

List of IThemeinstances

GetAvailableThemesBatchAsync(Batch)

Lists the available themes for this web

Task<IEnumerableBatchResult<ITheme>> GetAvailableThemesBatchAsync(Batch batch)

Parameters

batch Batch

Batch to add this request to

Returns

Task<IEnumerableBatchResult<ITheme>>

List of IThemeinstances

GetBrandcenterConfiguration()

Gets the branding center configuration

IBrandcenterConfiguration GetBrandcenterConfiguration()

Returns

IBrandcenterConfiguration

Site's IBrandcenterConfiguration

GetBrandcenterConfigurationAsync()

Gets the branding center configuration

Task<IBrandcenterConfiguration> GetBrandcenterConfigurationAsync()

Returns

Task<IBrandcenterConfiguration>

Site's IBrandcenterConfiguration

GetBrandcenterConfigurationBatch(Batch)

Gets the branding center configuration

IBatchSingleResult<IBrandcenterConfiguration> GetBrandcenterConfigurationBatch(Batch batch)

Parameters

batch Batch

Batch to add this request to

Returns

IBatchSingleResult<IBrandcenterConfiguration>

Site's IBrandcenterConfiguration

GetBrandcenterConfigurationBatchAsync(Batch)

Gets the branding center configuration

Task<IBatchSingleResult<IBrandcenterConfiguration>> GetBrandcenterConfigurationBatchAsync(Batch batch)

Parameters

batch Batch

Batch to add this request to

Returns

Task<IBatchSingleResult<IBrandcenterConfiguration>>

Site's IBrandcenterConfiguration

GetChromeOptions()

Gets the site's chrome (header/footer/navigation) options

IChromeOptions GetChromeOptions()

Returns

IChromeOptions

Site's IChromeOptions

GetChromeOptionsAsync()

Gets the site's chrome (header/footer/navigation) options

Task<IChromeOptions> GetChromeOptionsAsync()

Returns

Task<IChromeOptions>

Site's IChromeOptions

GetChromeOptionsBatch()

Gets the site's chrome (header/footer/navigation) options

IBatchSingleResult<IChromeOptions> GetChromeOptionsBatch()

Returns

IBatchSingleResult<IChromeOptions>

Site's IChromeOptions

GetChromeOptionsBatch(Batch)

Gets the site's chrome (header/footer/navigation) options

IBatchSingleResult<IChromeOptions> GetChromeOptionsBatch(Batch batch)

Parameters

batch Batch

Batch to add this request to

Returns

IBatchSingleResult<IChromeOptions>

Site's IChromeOptions

GetChromeOptionsBatchAsync()

Gets the site's chrome (header/footer/navigation) options

Task<IBatchSingleResult<IChromeOptions>> GetChromeOptionsBatchAsync()

Returns

Task<IBatchSingleResult<IChromeOptions>>

Site's IChromeOptions

GetChromeOptionsBatchAsync(Batch)

Gets the site's chrome (header/footer/navigation) options

Task<IBatchSingleResult<IChromeOptions>> GetChromeOptionsBatchAsync(Batch batch)

Parameters

batch Batch

Batch to add this request to

Returns

Task<IBatchSingleResult<IChromeOptions>>

Site's IChromeOptions

GetCurrentBrandcenterConfiguration()

Gets the current branding center configuration

IBrandcenterConfiguration GetCurrentBrandcenterConfiguration()

Returns

IBrandcenterConfiguration

Site's IBrandcenterConfiguration

GetCurrentBrandcenterConfigurationAsync()

Gets the current branding center configuration

Task<IBrandcenterConfiguration> GetCurrentBrandcenterConfigurationAsync()

Returns

Task<IBrandcenterConfiguration>

Site's IBrandcenterConfiguration

GetCurrentBrandcenterConfigurationBatch(Batch)

Gets the current branding center configuration

IBatchSingleResult<IBrandcenterConfiguration> GetCurrentBrandcenterConfigurationBatch(Batch batch)

Parameters

batch Batch

Batch to add this request to

Returns

IBatchSingleResult<IBrandcenterConfiguration>

Site's IBrandcenterConfiguration

GetCurrentBrandcenterConfigurationBatchAsync(Batch)

Gets the current branding center configuration

Task<IBatchSingleResult<IBrandcenterConfiguration>> GetCurrentBrandcenterConfigurationBatchAsync(Batch batch)

Parameters

batch Batch

Batch to add this request to

Returns

Task<IBatchSingleResult<IBrandcenterConfiguration>>

Site's IBrandcenterConfiguration

GetFontPackages()

Gets the fonts available in branding center

List<IFontPackage> GetFontPackages()

Returns

List<IFontPackage>

Site's List<T>

GetFontPackagesAsync()

Gets the fonts available in branding center

Task<List<IFontPackage>> GetFontPackagesAsync()

Returns

Task<List<IFontPackage>>

Site's List<T>

GetFontPackagesBatch(Batch)

Gets the fonts available in branding center

IEnumerableBatchResult<IFontPackage> GetFontPackagesBatch(Batch batch)

Parameters

batch Batch

Returns

IEnumerableBatchResult<IFontPackage>

Site's IFontPackage collection

GetFontPackagesBatchAsync(Batch)

Gets the fonts available in branding center

Task<IEnumerableBatchResult<IFontPackage>> GetFontPackagesBatchAsync(Batch batch)

Parameters

batch Batch

Returns

Task<IEnumerableBatchResult<IFontPackage>>

Site's IFontPackage collection

GetOutOfBoxFontPackages()

Gets the out of the box fonts available

List<IFontPackage> GetOutOfBoxFontPackages()

Returns

List<IFontPackage>

Site's IFontPackage

GetOutOfBoxFontPackagesAsync()

Gets the out of the box fonts available

Task<List<IFontPackage>> GetOutOfBoxFontPackagesAsync()

Returns

Task<List<IFontPackage>>

Site's IFontPackage

GetOutOfBoxFontPackagesBatch(Batch)

Gets the out of the box fonts available

IEnumerableBatchResult<IFontPackage> GetOutOfBoxFontPackagesBatch(Batch batch)

Parameters

batch Batch

Returns

IEnumerableBatchResult<IFontPackage>

Site's IFontPackage collection

GetOutOfBoxFontPackagesBatchAsync(Batch)

Gets the out of the box fonts available

Task<IEnumerableBatchResult<IFontPackage>> GetOutOfBoxFontPackagesBatchAsync(Batch batch)

Parameters

batch Batch

Returns

Task<IEnumerableBatchResult<IFontPackage>>

Site's IFontPackage collection

GetSiteFontPackages()

Gets the fonts installed on the site

List<IFontPackage> GetSiteFontPackages()

Returns

List<IFontPackage>

Site's List<T>

GetSiteFontPackagesAsync()

Gets the fonts installed on the site

Task<List<IFontPackage>> GetSiteFontPackagesAsync()

Returns

Task<List<IFontPackage>>

Site's List<T>

GetSiteFontPackagesBatch(Batch)

Gets the fonts installed on the site

IEnumerableBatchResult<IFontPackage> GetSiteFontPackagesBatch(Batch batch)

Parameters

batch Batch

Returns

IEnumerableBatchResult<IFontPackage>

Site's IFontPackage collection

GetSiteFontPackagesBatchAsync(Batch)

Gets the fonts installed on the site

Task<IEnumerableBatchResult<IFontPackage>> GetSiteFontPackagesBatchAsync(Batch batch)

Parameters

batch Batch

Returns

Task<IEnumerableBatchResult<IFontPackage>>

Site's IFontPackage collection

SetChromeOptions(IChromeOptions)

Sets the site's chrome (header/footer/navigation) options

void SetChromeOptions(IChromeOptions chromeOptions)

Parameters

chromeOptions IChromeOptions

Site chrome options to apply

SetChromeOptionsAsync(IChromeOptions)

Sets the site's chrome (header/footer/navigation) options

Task SetChromeOptionsAsync(IChromeOptions chromeOptions)

Parameters

chromeOptions IChromeOptions

Site chrome options to apply

Returns

Task

SetChromeOptionsBatch(IChromeOptions)

Sets the site's chrome (header/footer/navigation) options

void SetChromeOptionsBatch(IChromeOptions chromeOptions)

Parameters

chromeOptions IChromeOptions

Site chrome options to apply

SetChromeOptionsBatch(Batch, IChromeOptions)

Sets the site's chrome (header/footer/navigation) options

void SetChromeOptionsBatch(Batch batch, IChromeOptions chromeOptions)

Parameters

batch Batch

Batch to add this request to

chromeOptions IChromeOptions

Site chrome options to apply

SetChromeOptionsBatchAsync(IChromeOptions)

Sets the site's chrome (header/footer/navigation) options

Task SetChromeOptionsBatchAsync(IChromeOptions chromeOptions)

Parameters

chromeOptions IChromeOptions

Site chrome options to apply

Returns

Task

SetChromeOptionsBatchAsync(Batch, IChromeOptions)

Sets the site's chrome (header/footer/navigation) options

Task SetChromeOptionsBatchAsync(Batch batch, IChromeOptions chromeOptions)

Parameters

batch Batch

Batch to add this request to

chromeOptions IChromeOptions

Site chrome options to apply

Returns

Task

SetFontPackage(string)

Sets the branding center font with the given id on the Site

void SetFontPackage(string fontId)

Parameters

fontId string

SetFontPackageAsync(string)

Sets the branding center font with the given id on the Site

Task SetFontPackageAsync(string fontId)

Parameters

fontId string

Returns

Task

SetFontPackageBatch(Batch, string)

Sets the branding center font with the given id on the Site

void SetFontPackageBatch(Batch batch, string fontId)

Parameters

batch Batch
fontId string

SetFontPackageBatchAsync(Batch, string)

Sets the branding center font with the given id on the Site

Task SetFontPackageBatchAsync(Batch batch, string fontId)

Parameters

batch Batch
fontId string

Returns

Task

SetOutOfBoxFontPackage(string)

Sets the out of the box font with the given id on the Site

void SetOutOfBoxFontPackage(string fontId)

Parameters

fontId string

SetOutOfBoxFontPackageAsync(string)

Sets the out of the box font with the given id on the Site

Task SetOutOfBoxFontPackageAsync(string fontId)

Parameters

fontId string

Returns

Task

SetOutOfBoxFontPackageBatch(Batch, string)

Sets the out of the box font with the given id on the Site

void SetOutOfBoxFontPackageBatch(Batch batch, string fontId)

Parameters

batch Batch
fontId string

SetOutOfBoxFontPackageBatchAsync(Batch, string)

Sets the out of the box font with the given id on the Site

Task SetOutOfBoxFontPackageBatchAsync(Batch batch, string fontId)

Parameters

batch Batch
fontId string

Returns

Task

SetTheme(ITheme)

Sets a custom theme

void SetTheme(ITheme theme)

Parameters

theme ITheme

Theme to apply

SetTheme(SharePointTheme)

Sets a an out of the box theme

void SetTheme(SharePointTheme theme)

Parameters

theme SharePointTheme

Theme to apply

SetThemeAsync(ITheme)

Sets a custom theme

Task SetThemeAsync(ITheme theme)

Parameters

theme ITheme

Theme to apply

Returns

Task

SetThemeAsync(SharePointTheme)

Sets a an out of the box theme

Task SetThemeAsync(SharePointTheme theme)

Parameters

theme SharePointTheme

Theme to apply

Returns

Task

SetThemeBatch(ITheme)

Sets a custom theme

void SetThemeBatch(ITheme theme)

Parameters

theme ITheme

Theme to apply

SetThemeBatch(SharePointTheme)

Sets a an out of the box theme

void SetThemeBatch(SharePointTheme theme)

Parameters

theme SharePointTheme

Theme to apply

SetThemeBatch(Batch, ITheme)

Sets a custom theme

void SetThemeBatch(Batch batch, ITheme theme)

Parameters

batch Batch

Batch to add this request to

theme ITheme

Theme to apply

SetThemeBatch(Batch, SharePointTheme)

Sets a an out of the box theme

void SetThemeBatch(Batch batch, SharePointTheme theme)

Parameters

batch Batch

Batch to add this request to

theme SharePointTheme

Theme to apply

SetThemeBatchAsync(ITheme)

Sets a custom theme

Task SetThemeBatchAsync(ITheme theme)

Parameters

theme ITheme

Theme to apply

Returns

Task

SetThemeBatchAsync(SharePointTheme)

Sets a an out of the box theme

Task SetThemeBatchAsync(SharePointTheme theme)

Parameters

theme SharePointTheme

Theme to apply

Returns

Task

SetThemeBatchAsync(Batch, ITheme)

Sets a custom theme

Task SetThemeBatchAsync(Batch batch, ITheme theme)

Parameters

batch Batch

Batch to add this request to

theme ITheme

Theme to apply

Returns

Task

SetThemeBatchAsync(Batch, SharePointTheme)

Sets a an out of the box theme

Task SetThemeBatchAsync(Batch batch, SharePointTheme theme)

Parameters

batch Batch

Batch to add this request to

theme SharePointTheme

Theme to apply

Returns

Task