次の方法で共有


ServiceClient.ExecuteWebRequestAsync Method

Definition

Executes an asychronous web request against the Dataverse Web API.

public System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage> ExecuteWebRequestAsync (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.ExecuteWebRequestAsync : System.Net.Http.HttpMethod * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Net.Http.HttpResponseMessage>
Public Function ExecuteWebRequestAsync (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 Task(Of 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