Compartilhar via


BaseRequest Class

Definition

The base request class.

public class BaseRequest : Microsoft.Graph.IBaseRequest
type BaseRequest = class
    interface IBaseRequest
Public Class BaseRequest
Implements IBaseRequest
Inheritance
BaseRequest
Derived
Implements

Constructors

BaseRequest(String, IBaseClient, IEnumerable<Option>)

Constructs a new BaseRequest.

Properties

Client

Gets the IBaseClient for handling requests.

ContentType

Gets or sets the content type for the request.

Headers

Gets the HeaderOption collection for the request.

Method

Gets or sets the HTTP method string for the request.

MiddlewareOptions

Gets or sets middleware options for the request.

QueryOptions

Gets the QueryOption collection for the request.

RequestUrl

Gets the URL for the request, without query string.

ResponseHandler

Gets or sets the response handler for the request.

Methods

AppendSegmentToRequestUrl(String)

Gets a URL that is the request builder's request URL with the segment appended.

GetHttpRequestMessage()

Gets the HttpRequestMessage representation of the request.

GetHttpRequestMessage(CancellationToken)

Gets the HttpRequestMessage representation of the request.

SendAsync(Object, CancellationToken, HttpCompletionOption)

Sends the request.

SendAsync<T>(Object, CancellationToken, HttpCompletionOption)

Sends the request.

SendMultiPartAsync<T>(MultipartContent, CancellationToken, HttpCompletionOption)

Sends the multipart request.

SendMultiPartRequestAsync(MultipartContent, CancellationToken, HttpCompletionOption)

Sends the multipart request.

SendRequestAsync(Object, CancellationToken, HttpCompletionOption)

Sends the request.

SendStreamRequestAsync(Object, CancellationToken, HttpCompletionOption)

Sends the request.

Applies to