VariationsTranslationTimerJob.MachineTranslateItemsRequiringTranslation method (SPList, IEnumerable<String>)
Creates a work item for the timer job to machine translate all items in the list that currently require translation.
Namespace: Microsoft.Office.TranslationServices
Assembly: Microsoft.Office.TranslationServices (in Microsoft.Office.TranslationServices.dll)
Syntax
'Declaration
Public Shared Sub MachineTranslateItemsRequiringTranslation ( _
list As SPList, _
addressesToEmail As IEnumerable(Of String) _
)
'Usage
Dim list As SPList
Dim addressesToEmail As IEnumerable(Of String)
VariationsTranslationTimerJob.MachineTranslateItemsRequiringTranslation(list, _
addressesToEmail)
public static void MachineTranslateItemsRequiringTranslation(
SPList list,
IEnumerable<string> addressesToEmail
)
Parameters
list
Type: Microsoft.SharePoint.SPListList containing the items to machine translate.
addressesToEmail
Type: System.Collections.Generic.IEnumerable<String>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