Partager via


BaseRequestExtensions.WithAppOnly<T>(T, Boolean, String) Method

Definition

Applied to a request, expresses to use app only permissions for Graph.

public static T WithAppOnly<T> (this T baseRequest, bool appOnly = true, string? tenant = default) where T : Microsoft.Graph.IBaseRequest;
static member WithAppOnly : 'T * bool * string -> 'T (requires 'T :> Microsoft.Graph.IBaseRequest)
<Extension()>
Public Function WithAppOnly(Of T As IBaseRequest) (baseRequest As T, Optional appOnly As Boolean = true, Optional tenant As String = Nothing) As T

Type Parameters

T

Type of the request.

Parameters

baseRequest
T

Request.

appOnly
Boolean

Should the permissions be app only or not.

tenant
String

Tenant ID or domain for which we want to make the call..

Returns

T

Applies to