C# Class OfficeDevPnP.PartnerPack.Infrastructure.MicrosoftGraphHelper

Afficher le fichier Open project: OfficeDev/PnP-Partner-Pack Class Usage Examples

Méthodes publiques

Méthode Description
GetAccessTokenForCurrentUser ( String resourceId = null ) : String

This helper method returns and OAuth Access Token for the current user

GetNewGraphClient ( string accessToken = null ) : GraphServiceClient

Private Methods

Méthode Description
ForceOAuthChallenge ( ) : void

Method Details

GetAccessTokenForCurrentUser() public static méthode

This helper method returns and OAuth Access Token for the current user
public static GetAccessTokenForCurrentUser ( String resourceId = null ) : String
resourceId String The resourceId for which we are requesting the token
Résultat String

GetNewGraphClient() public static méthode

public static GetNewGraphClient ( string accessToken = null ) : GraphServiceClient
accessToken string
Résultat GraphServiceClient