Show / Hide Table of Contents

Interface IMessageRequest

The interface IMessageRequest.

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

Methods

View Source

CreateAsync(Message)

Creates the specified Message using PUT.

Declaration
Task<Message> CreateAsync(Message messageToCreate)
Parameters
Type Name Description
Message messageToCreate

The Message to create.

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

The created Message.

View Source

CreateAsync(Message, CancellationToken)

Creates the specified Message using PUT.

Declaration
Task<Message> CreateAsync(Message messageToCreate, CancellationToken cancellationToken)
Parameters
Type Name Description
Message messageToCreate

The Message to create.

System.Threading.CancellationToken cancellationToken

The System.Threading.CancellationToken for the request.

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

The created Message.

View Source

DeleteAsync()

Deletes the specified Message.

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

The task to await.

View Source

DeleteAsync(CancellationToken)

Deletes the specified Message.

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<Message, Object>>)

Adds the specified expand value to the request.

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

The expression from which to calculate the expand value.

Returns
Type Description
IMessageRequest

The request object to send.

View Source

Expand(String)

Adds the specified expand value to the request.

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

The expand value.

Returns
Type Description
IMessageRequest

The request object to send.

View Source

GetAsync()

Gets the specified Message.

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

The Message.

View Source

GetAsync(CancellationToken)

Gets the specified Message.

Declaration
Task<Message> 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<Message>

The Message.

View Source

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

Adds the specified select value to the request.

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

The expression from which to calculate the select value.

Returns
Type Description
IMessageRequest

The request object to send.

View Source

Select(String)

Adds the specified select value to the request.

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

The select value.

Returns
Type Description
IMessageRequest

The request object to send.

View Source

UpdateAsync(Message)

Updates the specified Message using PATCH.

Declaration
Task<Message> UpdateAsync(Message messageToUpdate)
Parameters
Type Name Description
Message messageToUpdate

The Message to update.

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

The updated Message.

View Source

UpdateAsync(Message, CancellationToken)

Updates the specified Message using PATCH.

Declaration
Task<Message> UpdateAsync(Message messageToUpdate, CancellationToken cancellationToken)
Parameters
Type Name Description
Message messageToUpdate

The Message to update.

System.Threading.CancellationToken cancellationToken

The System.Threading.CancellationToken for the request.

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

The updated Message.

  • View Source
Back to top Generated by DocFX