Share via


VariationsTranslationTimerJob.MachineTranslateItemsRequiringTranslation method

Creates a work item for the timer job to machine translate all items in the list that currently require translation.

Namespace:  Microsoft.Office.Client.TranslationServices
Assembly:  Microsoft.Office.Client.TranslationServices (in Microsoft.Office.Client.TranslationServices.dll)

Syntax

'Declaration
Public Shared Sub MachineTranslateItemsRequiringTranslation ( _
    context As ClientRuntimeContext, _
    list As String, _
    addressesToEmail As String() _
)
'Usage
Dim context As ClientRuntimeContext
Dim list As String
Dim addressesToEmail As String()

VariationsTranslationTimerJob.MachineTranslateItemsRequiringTranslation(context, _
    list, addressesToEmail)
public static void MachineTranslateItemsRequiringTranslation(
    ClientRuntimeContext context,
    string list,
    string[] addressesToEmail
)

Parameters

  • list
    Type: System.String

    List containing the items to machine translate.

  • addressesToEmail
    Type: []

    Email addresses that should be notified when the operation is completed.

Exceptions

Exception Condition
ArgumentException

InvalidOperationException

The list is not configured for translation.

UnauthorizedAccessException

The current user has insufficient permissions.

Remarks

The current user must have the CancelCheckout permission to perform the operation. The current user's identity must be configured properly in the Unique Particle Attribution (UPA) for use with OAuth2BearerCredentials.

See also

Reference

VariationsTranslationTimerJob class

VariationsTranslationTimerJob members

Microsoft.Office.Client.TranslationServices namespace