Show / Hide Table of Contents

Interface IEntityRequest

The interface IEntityRequest.

Inherited Members
IBaseRequest.Client
IBaseRequest.RequestUrl
IBaseRequest.Headers
IBaseRequest.QueryOptions
Namespace: Microsoft.Graph
Assembly: Microsoft.Graph.CoreSDK.dll
Syntax
public interface IEntityRequest : IBaseRequest

Methods

View Source

CreateAsync(Entity)

Creates the specified Entity using PUT.

Declaration
Task<Entity> CreateAsync(Entity entityToCreate)
Parameters
Type Name Description
Entity entityToCreate

The Entity to create.

Returns
Type Description
System.Threading.Tasks.Task<Entity>

The created Entity.

View Source

CreateAsync(Entity, CancellationToken)

Creates the specified Entity using PUT.

Declaration
Task<Entity> CreateAsync(Entity entityToCreate, CancellationToken cancellationToken)
Parameters
Type Name Description
Entity entityToCreate

The Entity to create.

System.Threading.CancellationToken cancellationToken

The System.Threading.CancellationToken for the request.

Returns
Type Description
System.Threading.Tasks.Task<Entity>

The created Entity.

View Source

DeleteAsync()

Deletes the specified Entity.

Declaration
Task DeleteAsync()
Returns
Type Description
System.Threading.Tasks.Task

The task to await.

View Source

DeleteAsync(CancellationToken)

Deletes the specified Entity.

Declaration
Task DeleteAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken

The System.Threading.CancellationToken for the request.

Returns
Type Description
System.Threading.Tasks.Task

The task to await.

View Source

Expand(Expression<Func<Entity, Object>>)

Adds the specified expand value to the request.

Declaration
IEntityRequest Expand(Expression<Func<Entity, object>> expandExpression)
Parameters
Type Name Description
System.Linq.Expressions.Expression<System.Func<Entity, System.Object>> expandExpression

The expression from which to calculate the expand value.

Returns
Type Description
IEntityRequest

The request object to send.

View Source

Expand(String)

Adds the specified expand value to the request.

Declaration
IEntityRequest Expand(string value)
Parameters
Type Name Description
System.String value

The expand value.

Returns
Type Description
IEntityRequest

The request object to send.

View Source

GetAsync()

Gets the specified Entity.

Declaration
Task<Entity> GetAsync()
Returns
Type Description
System.Threading.Tasks.Task<Entity>

The Entity.

View Source

GetAsync(CancellationToken)

Gets the specified Entity.

Declaration
Task<Entity> GetAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken

The System.Threading.CancellationToken for the request.

Returns
Type Description
System.Threading.Tasks.Task<Entity>

The Entity.

View Source

Select(Expression<Func<Entity, Object>>)

Adds the specified select value to the request.

Declaration
IEntityRequest Select(Expression<Func<Entity, object>> selectExpression)
Parameters
Type Name Description
System.Linq.Expressions.Expression<System.Func<Entity, System.Object>> selectExpression

The expression from which to calculate the select value.

Returns
Type Description
IEntityRequest

The request object to send.

View Source

Select(String)

Adds the specified select value to the request.

Declaration
IEntityRequest Select(string value)
Parameters
Type Name Description
System.String value

The select value.

Returns
Type Description
IEntityRequest

The request object to send.

View Source

UpdateAsync(Entity)

Updates the specified Entity using PATCH.

Declaration
Task<Entity> UpdateAsync(Entity entityToUpdate)
Parameters
Type Name Description
Entity entityToUpdate

The Entity to update.

Returns
Type Description
System.Threading.Tasks.Task<Entity>

The updated Entity.

View Source

UpdateAsync(Entity, CancellationToken)

Updates the specified Entity using PATCH.

Declaration
Task<Entity> UpdateAsync(Entity entityToUpdate, CancellationToken cancellationToken)
Parameters
Type Name Description
Entity entityToUpdate

The Entity to update.

System.Threading.CancellationToken cancellationToken

The System.Threading.CancellationToken for the request.

Returns
Type Description
System.Threading.Tasks.Task<Entity>

The updated Entity.

  • View Source
Back to top Generated by DocFX