Edit

Share via


GraphExtensions.RenameItemAsync Method

Definition

Rename an item.

public static System.Threading.Tasks.Task RenameItemAsync(this Microsoft.Graph.GraphServiceClient graph, string userId, string itemPath, string newName);
static member RenameItemAsync : Microsoft.Graph.GraphServiceClient * string * string * string -> System.Threading.Tasks.Task
<Extension()>
Public Function RenameItemAsync (graph As GraphServiceClient, userId As String, itemPath As String, newName As String) As Task

Parameters

graph
Microsoft.Graph.GraphServiceClient

Instance of the Microsoft.Graph.GraphServiceClient.

userId
String

The id of the target Graph user.

itemPath
String

The path of the target item.

newName
String

The new name for the item.

Returns

A Task representing the asynchronous operation.

Applies to