ServiceClient.ExecuteWebRequest Method

Definition

Executes a web request against the Dataverse Web API.

public System.Net.Http.HttpResponseMessage ExecuteWebRequest (System.Net.Http.HttpMethod method, string queryString, string body, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders, string contentType = default, System.Threading.CancellationToken cancellationToken = default);
member this.ExecuteWebRequest : System.Net.Http.HttpMethod * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * string * System.Threading.CancellationToken -> System.Net.Http.HttpResponseMessage
Public Function ExecuteWebRequest (method As HttpMethod, queryString As String, body As String, customHeaders As Dictionary(Of String, List(Of String)), Optional contentType As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As HttpResponseMessage

Parameters

method
HttpMethod

HTTP method to use for the request

queryString
String

The path and query parameters that you wish to pass onto the Web API

body
String

Request content

customHeaders
Dictionary<String,List<String>>

Additional headers

contentType
String

Content Type for the request. Defaults to application/json

cancellationToken
CancellationToken

Cancellation token for the request

Returns

Remarks

Learn more about how to use the Dataverse Web API.

Applies to