VariationsTranslationTimerJob.MachineTranslateItems method
Creates a work item for the timer job to machine translate a specific set of items.
Namespace: Microsoft.Office.Client.TranslationServices
Assembly: Microsoft.Office.Client.TranslationServices (in Microsoft.Office.Client.TranslationServices.dll)
Syntax
'Declaration
Public Shared Sub MachineTranslateItems ( _
context As ClientRuntimeContext, _
list As String, _
itemIds As Integer(), _
addressesToEmail As String() _
)
'Usage
Dim context As ClientRuntimeContext
Dim list As String
Dim itemIds As Integer()
Dim addressesToEmail As String()
VariationsTranslationTimerJob.MachineTranslateItems(context, _
list, itemIds, addressesToEmail)
public static void MachineTranslateItems(
ClientRuntimeContext context,
string list,
int[] itemIds,
string[] addressesToEmail
)
Parameters
- context
Type: Microsoft.SharePoint.Client.ClientRuntimeContext
list
Type: System.StringList containing the items to machine translate.
itemIds
Type: []Identifiers of 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
Users who do not have the CancelCheckout permission may export, at most, one item per call. Users with the CancelCheckout permission may perform bulk operations on multiple items. The current user's identity must be configured properly in the Unique Particle Attribution (UPA) for use with OAuth2BearerCredentials.
See also
Reference
VariationsTranslationTimerJob class