TemporaryDataHttpClient.CreateTemporaryDataAsync Method
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.
CreateTemporaryDataAsync(TemporaryDataDTO, Object, CancellationToken) |
[Preview API] Create a new temporary data. |
CreateTemporaryDataAsync(TemporaryDataDTO, Guid, Object, CancellationToken) |
[Preview API] Create a new temporary data with the provided guid |
[Preview API] Create a new temporary data.
public System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.TemporaryDataCreatedDTO> CreateTemporaryDataAsync (Microsoft.TeamFoundation.Core.WebApi.TemporaryDataDTO requestBody, object userState = null, System.Threading.CancellationToken cancellationToken = null);
member this.CreateTemporaryDataAsync : Microsoft.TeamFoundation.Core.WebApi.TemporaryDataDTO * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.TemporaryDataCreatedDTO>
Parameters
- requestBody
- TemporaryDataDTO
The data of temporary artifact in json format.
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
Azure DevOps Services .NET SDK latest and Azure DevOps Services .NET SDK preview
Product | Versions |
---|---|
Azure DevOps Services .NET SDK | preview, latest |
[Preview API] Create a new temporary data with the provided guid
public System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.TemporaryDataCreatedDTO> CreateTemporaryDataAsync (Microsoft.TeamFoundation.Core.WebApi.TemporaryDataDTO requestBody, Guid id, object userState = null, System.Threading.CancellationToken cancellationToken = null);
member this.CreateTemporaryDataAsync : Microsoft.TeamFoundation.Core.WebApi.TemporaryDataDTO * Guid * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.TeamFoundation.Core.WebApi.TemporaryDataCreatedDTO>
Parameters
- requestBody
- TemporaryDataDTO
The data of temporary artifact in json format.
- id
- Guid
New temporary data Id
- userState
- Object
- cancellationToken
- CancellationToken
The cancellation token to cancel operation.
Returns
Applies to
Azure DevOps Services .NET SDK latest and Azure DevOps Services .NET SDK preview
Product | Versions |
---|---|
Azure DevOps Services .NET SDK | preview, latest |