TaskAgentHttpClientBase.UploadSecureFileAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| UploadSecureFileAsync(String, Stream, String, Object, CancellationToken) |
[Preview API] Upload a secure file, include the file stream in the request body |
| UploadSecureFileAsync(Guid, Stream, String, Object, CancellationToken) |
[Preview API] Upload a secure file, include the file stream in the request body |
UploadSecureFileAsync(String, Stream, String, Object, CancellationToken)
[Preview API] Upload a secure file, include the file stream in the request body
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile> UploadSecureFileAsync(string project, System.IO.Stream uploadStream, string name, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UploadSecureFileAsync : string * System.IO.Stream * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile>
override this.UploadSecureFileAsync : string * System.IO.Stream * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile>
Parameters
- project
- String
Project ID or project name
- uploadStream
- Stream
Stream to upload
- name
- String
Name of the file to upload
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
UploadSecureFileAsync(Guid, Stream, String, Object, CancellationToken)
[Preview API] Upload a secure file, include the file stream in the request body
public virtual System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile> UploadSecureFileAsync(Guid project, System.IO.Stream uploadStream, string name, object userState = null, System.Threading.CancellationToken cancellationToken = null);
abstract member UploadSecureFileAsync : Guid * System.IO.Stream * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile>
override this.UploadSecureFileAsync : Guid * System.IO.Stream * string * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.DistributedTask.WebApi.SecureFile>
Parameters
- project
- Guid
Project ID
- uploadStream
- Stream
Stream to upload
- name
- String
Name of the file to upload
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.