共用方式為


StreamingRequest.CreateRequest(String, String, HttpContent) 方法

定義

StreamingRequest使用傳入的方法、路徑和主體建立 。

public static Microsoft.Bot.Streaming.StreamingRequest CreateRequest(string method, string path = default, System.Net.Http.HttpContent body = default);
static member CreateRequest : string * string * System.Net.Http.HttpContent -> Microsoft.Bot.Streaming.StreamingRequest
Public Shared Function CreateRequest (method As String, Optional path As String = Nothing, Optional body As HttpContent = Nothing) As StreamingRequest

參數

method
String

要用於此要求的 HTTP 動詞。

path
String

可在遠端伺服器上找到資源的選擇性路徑。

body
HttpContent

要傳送至遠端伺服器的選擇性本文。

傳回

成功時會 StreamingRequest 傳回具有適當狀態碼和本文的 ,否則會傳回 null。

適用於