Class PnPCoreSdk
Class that implements interop between PnP Framework and PnP Core SDK
Inheritance
System.Object
PnPCoreSdk
Namespace: PnP.Framework
Assembly: PnP.Framework.dll
Syntax
public class PnPCoreSdk : object
Properties
Instance
Provides the singleton instance of th entity manager
Declaration
public static PnPCoreSdk Instance { get; }
Property Value
PnPCoreSdk
|
Methods
GetClientContext(PnPContext)
Returns a CSOM ClientContext for a given PnP Core SDK context
Declaration
public ClientContext GetClientContext(PnPContext pnpContext)
Parameters
PnPContext
pnpContext
The PnP Core SDK context |
Returns
ClientContext
The equivalent CSOM ClientContext |
GetClientContextAsync(PnPContext)
Returns a CSOM ClientContext for a given PnP Core SDK context
Declaration
public async Task<ClientContext> GetClientContextAsync(PnPContext pnpContext)
Parameters
PnPContext
pnpContext
The PnP Core SDK context |
Returns
Task<ClientContext>
The equivalent CSOM ClientContext |
GetPnPContext(ClientContext, IPnPContextFactory)
Get's a PnPContext from a CSOM ClientContext
Declaration
public PnPContext GetPnPContext(ClientContext context, IPnPContextFactory existingFactory = null)
Parameters
ClientContext
context
CSOM ClientContext |
IPnPContextFactory
existingFactory
An existing factory to use for PnPContext creation, instead of an internal one. |
Returns
PnPContext
The equivalent PnPContext |
GetPnPContextAsync(ClientContext, IPnPContextFactory)
Get's a PnPContext from a CSOM ClientContext
Declaration
public async Task<PnPContext> GetPnPContextAsync(ClientContext context, IPnPContextFactory existingFactory = null)
Parameters
ClientContext
context
CSOM ClientContext |
IPnPContextFactory
existingFactory
An existing factory to use for PnPContext creation, instead of an internal one. |
Returns
Task<PnPContext>
The equivalent PnPContext |