Interface IEntityRequest
The interface IEntityRequest.
Inherited Members
Namespace: Microsoft.Graph
Assembly: Microsoft.Graph.CoreSDK.dll
Syntax
public interface IEntityRequest : IBaseRequest
Methods
View SourceCreateAsync(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. |
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. |
DeleteAsync()
Deletes the specified Entity.
Declaration
Task DeleteAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The task to await. |
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. |
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. |
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. |
GetAsync()
Gets the specified Entity.
Declaration
Task<Entity> GetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Entity> | The Entity. |
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. |
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. |
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. |
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. |
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. |