'Declaration
<AsyncStateMachineAttribute(Gibraltar.Server.Client.WebChannel/d__65)> Public Function UploadData( _ ByVal relativeUrl As String, _ ByVal method As HttpMethod, _ ByVal contentType As String, _ ByVal data() As Byte, _ ByVal additionalHeaders As IList(Of NameValuePair(Of String)), _ ByVal timeout As Nullable(Of Integer) _ ) As Task(Of Byte())
[AsyncStateMachine(Gibraltar.Server.Client.WebChannel/d__65)] public Task<byte[]> UploadData( string relativeUrl, HttpMethod method, string contentType, byte[] data, IList<NameValuePair<string>> additionalHeaders, Nullable<int> timeout )
Parameters
- relativeUrl
- The URI of the resource to receive the data. This URI must identify a resource that can accept a request sent with the method requested.
- method
- The HTTP method used to send the string to the resource. If null, the default is POST
- contentType
- The content type to inform the server of for this file
- data
- additionalHeaders
- Extra headers to add to the request
- timeout
- Optional. The number of seconds to wait for a response to the request.
Return Value
A byte array containing the body of the response from the resource