Search Results for

    Show / Hide Table of Contents

    Class PnPContextOptions

    Options used when a PnPContext is created

    Inheritance
    System.Object
    PnPContextOptions
    Namespace: PnP.Core.Services
    Assembly: PnP.Core.dll
    Syntax
    public class PnPContextOptions : object

    Properties

    AdditionalSitePropertiesOnCreate

    Additional ISite properties to load when creating a new PnPContext.

    Declaration
    public IEnumerable<Expression<Func<ISite, object>>> AdditionalSitePropertiesOnCreate { get; set; }
    Property Value
    IEnumerable<Expression<Func<ISite, System.Object>>>

    AdditionalWebPropertiesOnCreate

    Additional IWeb properties to load when creating a new PnPContext.

    Declaration
    public IEnumerable<Expression<Func<IWeb, object>>> AdditionalWebPropertiesOnCreate { get; set; }
    Property Value
    IEnumerable<Expression<Func<IWeb, System.Object>>>

    Properties

    Properties to set on the context during creation

    Declaration
    public IDictionary<string, object> Properties { get; set; }
    Property Value
    IDictionary<System.String, System.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.

    Declaration
    public bool SiteUriCasingIsCorrect { get; set; }
    Property Value
    System.Boolean

    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer