Interface IOperationRequest
The interface IOperationRequest.
Inherited Members
Namespace: Microsoft.Graph
Assembly: Microsoft.Graph.CoreSDK.dll
Syntax
public interface IOperationRequest : IBaseRequest
Methods
View SourceCreateAsync(Operation)
Creates the specified Operation using PUT.
Declaration
Task<Operation> CreateAsync(Operation operationToCreate)
Parameters
Type | Name | Description |
---|---|---|
Operation | operationToCreate | The Operation to create. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Operation> | The created Operation. |
CreateAsync(Operation, CancellationToken)
Creates the specified Operation using PUT.
Declaration
Task<Operation> CreateAsync(Operation operationToCreate, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Operation | operationToCreate | The Operation to create. |
System.Threading.CancellationToken | cancellationToken | The System.Threading.CancellationToken for the request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Operation> | The created Operation. |
DeleteAsync()
Deletes the specified Operation.
Declaration
Task DeleteAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task | The task to await. |
DeleteAsync(CancellationToken)
Deletes the specified Operation.
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<Operation, Object>>)
Adds the specified expand value to the request.
Declaration
IOperationRequest Expand(Expression<Func<Operation, object>> expandExpression)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<Operation, System.Object>> | expandExpression | The expression from which to calculate the expand value. |
Returns
Type | Description |
---|---|
IOperationRequest | The request object to send. |
Expand(String)
Adds the specified expand value to the request.
Declaration
IOperationRequest Expand(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The expand value. |
Returns
Type | Description |
---|---|
IOperationRequest | The request object to send. |
GetAsync()
Gets the specified Operation.
Declaration
Task<Operation> GetAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Operation> | The Operation. |
GetAsync(CancellationToken)
Gets the specified Operation.
Declaration
Task<Operation> 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<Operation> | The Operation. |
Select(Expression<Func<Operation, Object>>)
Adds the specified select value to the request.
Declaration
IOperationRequest Select(Expression<Func<Operation, object>> selectExpression)
Parameters
Type | Name | Description |
---|---|---|
System.Linq.Expressions.Expression<System.Func<Operation, System.Object>> | selectExpression | The expression from which to calculate the select value. |
Returns
Type | Description |
---|---|
IOperationRequest | The request object to send. |
Select(String)
Adds the specified select value to the request.
Declaration
IOperationRequest Select(string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The select value. |
Returns
Type | Description |
---|---|
IOperationRequest | The request object to send. |
UpdateAsync(Operation)
Updates the specified Operation using PATCH.
Declaration
Task<Operation> UpdateAsync(Operation operationToUpdate)
Parameters
Type | Name | Description |
---|---|---|
Operation | operationToUpdate | The Operation to update. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Operation> | The updated Operation. |
UpdateAsync(Operation, CancellationToken)
Updates the specified Operation using PATCH.
Declaration
Task<Operation> UpdateAsync(Operation operationToUpdate, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Operation | operationToUpdate | The Operation to update. |
System.Threading.CancellationToken | cancellationToken | The System.Threading.CancellationToken for the request. |
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<Operation> | The updated Operation. |