Edit

Share via


GraphExtensions Class

Definition

Extension methods to the Graph SDK used by the controls and helpers.

public static class GraphExtensions
type GraphExtensions = class
Public Module GraphExtensions
Inheritance
GraphExtensions

Methods

CreateExtension(GraphServiceClient, String, String)

Create a new extension object on a user.

CreateFolderAsync(GraphServiceClient, String, String, String)

Ensure a folder exists by name.

DeleteExtension(GraphServiceClient, String, String)

Delete a user extension by id.

DeleteItemAsync(GraphServiceClient, String, String)

Delete the file from the remote.

FindPersonAsync(GraphServiceClient, String)

Shortcut to perform a person query.

FindUserAsync(GraphServiceClient, String)

Shortcut to perform a user query.

GetAllExtensions(GraphServiceClient, String)

Get all extension objects for a user.

GetExtension(GraphServiceClient, String, String)

Retrieve an extension object for a user.

GetFileAsync<T>(GraphServiceClient, String, String, IObjectSerializer)

Get a file from the remote.

GetMeAsync(GraphServiceClient)

Retrieve the curernt user.

GetMyPhotoAsync(GraphServiceClient)

Get the photo of the current user.

GetUserAsync(GraphServiceClient, String)

Retrieve a user by id.

GetUserPhoto(GraphServiceClient, String)

Helper to get the photo of a particular user.

ReadFolderAsync(GraphServiceClient, String, String)

Retrieve a list of directory items with names and types.

RenameItemAsync(GraphServiceClient, String, String, String)

Rename an item.

Search<T>(T, String)

Extension to provider Searching on OData Requests.

SetFileAsync<T>(GraphServiceClient, String, String, T, IObjectSerializer)

Updates or create a new file on the remote with the provided content.

SetValue(GraphServiceClient, String, String, String, Object)

Sets a user extension value at the specified key.

ToPerson(User)

Simple method to convert a Microsoft.Graph.User to a Microsoft.Graph.Person with basic common properties like Microsoft.Graph.Entity.Id, Microsoft.Graph.User.DisplayName, Microsoft.Graph.Person.ScoredEmailAddresses, Microsoft.Graph.User.GivenName, and Microsoft.Graph.User.Surname intact.

Applies to