Edit

Share via


ProviderExtensions.GetClient(IProvider) Method

Definition

Gets a GraphServiceClient instance based on the current GlobalProvider.

public static Microsoft.Graph.GraphServiceClient GetClient(this CommunityToolkit.Authentication.IProvider provider);
static member GetClient : CommunityToolkit.Authentication.IProvider -> Microsoft.Graph.GraphServiceClient
<Extension()>
Public Function GetClient (provider As IProvider) As GraphServiceClient

Parameters

provider
IProvider

The provider for authenticating Graph calls.

Returns

Microsoft.Graph.GraphServiceClient

A GraphServiceClient instance.

Applies to