VariationsTranslationTimerJob.ExportItems method (SPList, IEnumerable<Int32>, IEnumerable<String>)
Creates a work item for the timer job to export a specific set of items to an XLIFF translation package.
Namespace: Microsoft.Office.TranslationServices
Assembly: Microsoft.Office.TranslationServices (in Microsoft.Office.TranslationServices.dll)
Syntax
'Declaration
Public Shared Sub ExportItems ( _
list As SPList, _
itemIds As IEnumerable(Of Integer), _
addressesToEmail As IEnumerable(Of String) _
)
'Usage
Dim list As SPList
Dim itemIds As IEnumerable(Of Integer)
Dim addressesToEmail As IEnumerable(Of String)
VariationsTranslationTimerJob.ExportItems(list, itemIds, addressesToEmail)
public static void ExportItems(
SPList list,
IEnumerable<int> itemIds,
IEnumerable<string> addressesToEmail
)
Parameters
list
Type: Microsoft.SharePoint.SPListList containing the items to export.
itemIds
Type: System.Collections.Generic.IEnumerable<Int32>IDs of the items to export.
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 resulting translation package can be downloaded from the translation packages library on the root web of the site collection. The download link will be included in the email sent after the operation completes. 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.
See also
Reference
VariationsTranslationTimerJob class