Share via


VariationsTranslationTimerJob.ExportItems method

Creates a work item for the timer job to export a specific set of items to an XLIFF translation package.

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

Syntax

'Declaration
Public Shared Sub ExportItems ( _
    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.ExportItems(context, list, itemIds, _
    addressesToEmail)
public static void ExportItems(
    ClientRuntimeContext context,
    string list,
    int[] itemIds,
    string[] addressesToEmail
)

Parameters

  • itemIds
    Type: []

    Identifiers of the items to export.

  • 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 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

VariationsTranslationTimerJob members

Microsoft.Office.Client.TranslationServices namespace