NetworkWebApiBaseRequestAsync 方法 (HttpMethod, String, MultipartFormDataContent) |
发起一个请求,然后返回结果,支持任意的http方法
Initiate a request and then return the result, supporting any http method
命名空间:
HslCommunication.Core.Net
程序集:
HslCommunication (在 HslCommunication.dll 中) 版本:12.9.1.0 (12.9.1.0)
语法public Task<OperateResult<string>> RequestAsync(
HttpMethod httpMethod,
string rawUrl,
MultipartFormDataContent body
)
Public Function RequestAsync (
httpMethod As HttpMethod,
rawUrl As String,
body As MultipartFormDataContent
) As Task(Of OperateResult(Of String))
public:
Task<OperateResult<String^>^>^ RequestAsync(
HttpMethod^ httpMethod,
String^ rawUrl,
MultipartFormDataContent^ body
)
member RequestAsync :
httpMethod : HttpMethod *
rawUrl : string *
body : MultipartFormDataContent -> Task<OperateResult<string>>
参数
- httpMethod
- 类型:System.Net.HttpHttpMethod
请求方法 - rawUrl
- 类型:SystemString
url信息 - body
- 类型:System.Net.HttpMultipartFormDataContent
body数据
返回值
类型:
TaskOperateResultString返回的结果数据
参见