GraphServiceClient クラス

GraphServiceClient クラス (Microsoft.Graph 名前空間)

[GitHub]

public class GraphServiceClient : BaseClient, IGraphServiceClient, IBaseClient

継承:ObjectBaseClient → GraphServiceClient

  • Microsoft Graphにおける認証済みのクライアントで、このインスタンスのプロパティからリクエストを作成することでMicrosoft Graph APIを使うことができます。
  • サインインして認証済みのGraphServiceClientを取得する方法は以下の記事をご覧ください。

コンストラクタ―

GraphServiceClient

@

public GraphServiceClient(IAuthenticationProvider authenticationProvider, IHttpProvider httpProvider = null);
public GraphServiceClient(string baseUrl, IAuthenticationProvider authenticationProvider, IHttpProvider httpProvider = null);
public GraphServiceClient(HttpClient httpClient);

  • baseUriには”https://graph.microsoft.com/v1.0″などを指定します。

プロパティ

Directory

@

public IDirectoryRequestBuilder Directory { get; }

Drive

@

public IDriveRequestBuilder Drive { get; }

Drives

@

public IGraphServiceDrivesCollectionRequestBuilder Drives { get; }

Me

@

public IUserRequestBuilder Me { get; }

Users

@

public IGraphServiceUsersCollectionRequestBuilder Users { get; }

Workbooks

@

IGraphServiceWorkbooksCollectionRequestBuilder Workbooks { get; }