Table of Contents

Class PnPCoreOptions

Namespace
PnP.Core.Services.Builder.Configuration
Assembly
PnP.Core.dll

Options for configuring PnP Core SDK

public class PnPCoreOptions
Inheritance
PnPCoreOptions
Inherited Members

Properties

AADTenantId

AAD tenant id, used for telemetry purposes. Can be customized via configuration

public Guid AADTenantId { get; set; }

Property Value

Guid

AzureADLoginAuthority

Returns the Azure AD Login authority (e.g. login.microsoftonline.com) to use when Environment is set to Custom

public string AzureADLoginAuthority { get; set; }

Property Value

string

DefaultAuthenticationProvider

The default Authentication Provider for the sites

public IAuthenticationProvider DefaultAuthenticationProvider { get; set; }

Property Value

IAuthenticationProvider

DisableTelemetry

Turns on/off telemetry, can be customized via configuration. Defaults to false.

public bool DisableTelemetry { get; set; }

Property Value

bool

Environment

The Microsoft 365 cloud environment that's used

public string Environment { get; set; }

Property Value

string

HttpRequests

The global HTTP requests settings

public PnPCoreHttpRequestsOptions HttpRequests { get; set; }

Property Value

PnPCoreHttpRequestsOptions

MicrosoftGraphAuthority

Returns the Microsoft Graph authority (e.g. graph.microsoft.com) to use when Environment is set to Custom

public string MicrosoftGraphAuthority { get; set; }

Property Value

string

PnPContext

The global PnPContext options

public PnPCoreContextOptions PnPContext { get; set; }

Property Value

PnPCoreContextOptions

Sites

The sites options

public PnPCoreSitesOptions Sites { get; }

Property Value

PnPCoreSitesOptions