GraphServiceCollectionExtensions.AddMicrosoftGraph Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddMicrosoftGraph(IServiceCollection) |
Add support to call Microsoft Graph. From a named option and a configuration section. |
AddMicrosoftGraph(IServiceCollection, Action<MicrosoftGraphOptions>) |
Add support to call Microsoft Graph. From a base Graph URL and a default scope. |
AddMicrosoftGraph(IServiceCollection)
Add support to call Microsoft Graph. From a named option and a configuration section.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddMicrosoftGraph (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddMicrosoftGraph : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddMicrosoftGraph (services As IServiceCollection) As IServiceCollection
Parameters
- services
- IServiceCollection
Builder.
Returns
The service collection to chain.
Applies to
AddMicrosoftGraph(IServiceCollection, Action<MicrosoftGraphOptions>)
Add support to call Microsoft Graph. From a base Graph URL and a default scope.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddMicrosoftGraph (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Identity.Web.MicrosoftGraphOptions> configureMicrosoftGraphOptions);
static member AddMicrosoftGraph : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Identity.Web.MicrosoftGraphOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddMicrosoftGraph (services As IServiceCollection, configureMicrosoftGraphOptions As Action(Of MicrosoftGraphOptions)) As IServiceCollection
Parameters
- services
- IServiceCollection
Builder.
- configureMicrosoftGraphOptions
- Action<MicrosoftGraphOptions>
Delegate to configure the graph service options
Returns
The service collection to chain.