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, resolved automatically when not set. 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

No longer used, PnP Core SDK does not send telemetry anymore. Will be removed in a future release.

[Obsolete("PnP Core SDK does not send telemetry anymore, this setting has no effect and will be removed in a future release.")]
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