Edit

Share via


GraphExtensions.CreateExtension(GraphServiceClient, String, String) Method

Definition

Create a new extension object on a user.

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

Parameters

graph
Microsoft.Graph.GraphServiceClient

Instance of the Microsoft.Graph.GraphServiceClient.

userId
String

The user to access.

extensionId
String

The id of the new extension.

Returns

Task<Microsoft.Graph.Extension>

The newly created extension.

Applies to