Class PnPContextOptions
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
AdditionalWebPropertiesOnCreate
Additional IWeb properties to load when creating a new PnPContext.
public IEnumerable<Expression<Func<IWeb, object>>> AdditionalWebPropertiesOnCreate { get; set; }
Property Value
Properties
Properties to set on the context during creation
public IDictionary<string, object> Properties { get; set; }
Property Value
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; }