Class PnPContextExtensions
Extends the PnPContext with additional functionality
Inheritance
Namespace: PnP.Core.Services
Assembly: PnP.Core.Admin.dll
Syntax
public static class PnPContextExtensions : object
Properties
Implementation
Allows you to replace the default implementation of IPnPContextExtensions with your own implementation.
Declaration
public static IPnPContextExtensions Implementation { set; }
Property Value
IPnPContextExtensions
|
Methods
GetMicrosoft365Admin(IPnPContext)
Extends a PnPContext with Microsoft 365 admin functionality
Declaration
public static IMicrosoft365Admin GetMicrosoft365Admin(this IPnPContext context)
Parameters
IPnPContext
context
PnPContext to extend |
Returns
IMicrosoft365Admin
An IMicrosoft365Admin instance enabling Microsoft 365 admin operations |
GetSharePointAdmin(IPnPContext)
GetSiteCollectionAppManager(IPnPContext)
Extends a PnPContext with site collection Application Lifecycle Management (ALM) functionality
Declaration
public static ISiteCollectionAppManager GetSiteCollectionAppManager(this IPnPContext context)
Parameters
IPnPContext
context
PnPContext to extend |
Returns
ISiteCollectionAppManager
An ISiteCollectionAppManager instance enabling site collection app catalog operations |
GetSiteCollectionManager(IPnPContext)
Extends a IPnPContext with site collection admin functionality
Declaration
public static ISiteCollectionManager GetSiteCollectionManager(this IPnPContext context)
Parameters
IPnPContext
context
IPnPContext to extend |
Returns
ISiteCollectionManager
An ISiteCollectionManager instance enabling site collection admin operations |
GetTeamManager(IPnPContext)
Extends a PnPContext with Teams admin functionality
Declaration
public static ITeamManager GetTeamManager(this IPnPContext context)
Parameters
IPnPContext
context
PnPContext to extend |
Returns
ITeamManager
An ISiteCollectionManager instance enabling site collection admin operations |
GetTenantAppManager(IPnPContext)
Extends a PnPContext with tenant Application Lifecycle Management (ALM) functionality
Declaration
public static ITenantAppManager GetTenantAppManager(this IPnPContext context)
Parameters
IPnPContext
context
PnPContext to extend |
Returns
ITenantAppManager
An ITenantAppManager instance enabling tenant app catalog operations |
RevertToDefaultImplementation()
When you've replaced the default implementation of IPnPContextExtensions with your own, you can use this method to revert back to the default implementation.
Declaration
public static void RevertToDefaultImplementation()