Class PnPCoreServiceCollectionExtensions
Extension methods for setting up PnP Core SDK services in an
Inheritance
System.Object
PnPCoreServiceCollectionExtensions
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: PnP.Core.dll
Syntax
public static class PnPCoreServiceCollectionExtensions : object
Methods
AddPnPCore(IServiceCollection)
Configures PnP Core SDK with default options
Declaration
public static IPnPCoreBuilder AddPnPCore(this IServiceCollection services)
Parameters
IServiceCollection
services
The collection of services in an |
Returns
IPnPCoreBuilder
A PnPCoreBuilder instance |
AddPnPCore(IServiceCollection, Action<PnPCoreOptions>)
Configures PnP Core SDK with custom options
Declaration
public static IPnPCoreBuilder AddPnPCore(this IServiceCollection services, Action<PnPCoreOptions> options)
Parameters
IServiceCollection
services
The collection of services in an |
Action<PnPCoreOptions>
options
An Action to configure the PnP Core options |
Returns
IPnPCoreBuilder
A PnPCoreBuilder instance |