ProviderExtensions.GetClient(IProvider) 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.
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
A GraphServiceClient instance.