TextAuthoringProject.ExportAsync 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
ExportAsync(WaitUntil, StringIndexType, String, String, CancellationToken) |
Triggers a job to export a project's data. |
ExportAsync(WaitUntil, String, String, String, RequestContext) |
[Protocol Method] Triggers a job to export a project's data.
|
ExportAsync(WaitUntil, StringIndexType, String, String, CancellationToken)
- Source:
- TextAuthoringProject.cs
Triggers a job to export a project's data.
public virtual System.Threading.Tasks.Task<Azure.Operation> ExportAsync(Azure.WaitUntil waitUntil, Azure.AI.Language.Text.Authoring.StringIndexType stringIndexType, string assetKind = default, string trainedModelLabel = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ExportAsync : Azure.WaitUntil * Azure.AI.Language.Text.Authoring.StringIndexType * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Operation>
override this.ExportAsync : Azure.WaitUntil * Azure.AI.Language.Text.Authoring.StringIndexType * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Operation>
Public Overridable Function ExportAsync (waitUntil As WaitUntil, stringIndexType As StringIndexType, Optional assetKind As String = Nothing, Optional trainedModelLabel As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Operation)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- stringIndexType
- StringIndexType
Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets.
- assetKind
- String
Kind of asset to export.
- trainedModelLabel
- String
Trained model label to export. If the trainedModelLabel is null, the default behavior is to export the current working copy.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Applies to
ExportAsync(WaitUntil, String, String, String, RequestContext)
- Source:
- TextAuthoringProject.cs
[Protocol Method] Triggers a job to export a project's data.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler ExportAsync(WaitUntil, StringIndexType, String, String, CancellationToken) convenience overload with strongly typed models first.
public virtual System.Threading.Tasks.Task<Azure.Operation> ExportAsync(Azure.WaitUntil waitUntil, string stringIndexType, string assetKind = default, string trainedModelLabel = default, Azure.RequestContext context = default);
abstract member ExportAsync : Azure.WaitUntil * string * string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation>
override this.ExportAsync : Azure.WaitUntil * string * string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation>
Public Overridable Function ExportAsync (waitUntil As WaitUntil, stringIndexType As String, Optional assetKind As String = Nothing, Optional trainedModelLabel As String = Nothing, Optional context As RequestContext = Nothing) As Task(Of Operation)
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- stringIndexType
- String
Specifies the method used to interpret string offsets. For additional information see https://aka.ms/text-analytics-offsets. Allowed values: "Utf16CodeUnit".
- assetKind
- String
Kind of asset to export.
- trainedModelLabel
- String
Trained model label to export. If the trainedModelLabel is null, the default behavior is to export the current working copy.
- context
- RequestContext
The request context, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The Operation representing an asynchronous operation on the service.
Exceptions
Service returned a non-success status code.