Table of Contents

Class PnPContextOptions

Namespace
PnP.Core.Services
Assembly
PnP.Core.dll

Options used when a PnPContext is created

public class PnPContextOptions
Inheritance
PnPContextOptions
Inherited Members

Properties

AdditionalSitePropertiesOnCreate

Additional ISite properties to load when creating a new PnPContext.

public IEnumerable<Expression<Func<ISite, object>>> AdditionalSitePropertiesOnCreate { get; set; }

Property Value

IEnumerable<Expression<Func<ISite, object>>>

AdditionalWebPropertiesOnCreate

Additional IWeb properties to load when creating a new PnPContext.

public IEnumerable<Expression<Func<IWeb, object>>> AdditionalWebPropertiesOnCreate { get; set; }

Property Value

IEnumerable<Expression<Func<IWeb, object>>>

Properties

Properties to set on the context during creation

public IDictionary<string, object> Properties { get; set; }

Property Value

IDictionary<string, object>

SiteUriCasingIsCorrect

By default PnPContext initialization requires two roundtrips, the first one is done interactively as that allows PnP Core SDK to pickup the correct casing for the site URI as batching in SharePoint requires exact casing. The second roundtrip is used to load the remaining initialization data. If you set this property to true then both requests are executed as a single batch request, resulting in only 1 roundtrip. This can be useful in scenarios where you want to reduce the number of requests.

public bool SiteUriCasingIsCorrect { get; set; }

Property Value

bool