TranslationJob members

Represents the main translation services object model class that is used to create, package, start, and cancel translation jobs.

The TranslationJob type exposes the following members.

Constructors

  Name Description
Public method TranslationJob Initializes a new instance of a TranslationJob object.

Top

Properties

  Name Description
Public property Canceled Gets a Boolean value that indicates if the translation job is canceled.
Public property JobId Gets the unique ID of the translation job.
Public property Name Gets or sets the name of the translation job.
Public property OutputSaveBehavior Specifies the save behavior that should be applied to files that already exist.
Public property Started Gets a Boolean value that specifies whether the translation job has been committed.
Public property TargetLanguage Gets a CultureInfo object that represents the language into which documents in the job are translated.
Public property UserToken Gets or sets a serialized open authorization (OAuth) token that is used to upload and download the items in the translation job.

Top

Methods

  Name Description
Public method AddFile Adds the inputFile (string) to the list of files to translate.
Public method AddFolder Adds all files in a website folder (inputFolder) to the list of files to translate.
Public method AddLibrary Adds all files in the inputList to the list of files to translate.
Public method Cancel Cancels a translation job in progress.
Public methodStatic member CancelJob Cancels the translation job identified by jobId.
Public method EnumerateItems Enumerates items added to the job as key/value pairs.
Public methodStatic member EnumerateSupportedFileExtensions Enumerates file extensions for file types supported by the translation service.
Public methodStatic member EnumerateSupportedLanguages Enumerates CultureInfo objects that represent languages supported by the translation service.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public methodStatic member GetMaximumFileSize Returns the maximum file size, in bytes, allowed by the translation service for files with the given file extension.
Public method GetType (Inherited from Object.)
Public methodStatic member IsFileExtensionSupported Reports whether the file type indicated by the given file extension is supported by the translation service.
Public methodStatic member IsLanguageSupported Reports whether a language is supported by the translation service.
Public methodStatic member IsServiceEnabled Determines if the translation service is enabled in the given service context.
Protected method MemberwiseClone (Inherited from Object.)
Public method Start Starts the processing of a translation job.
Public method ToString (Inherited from Object.)

Top

See also

Reference

TranslationJob class

Microsoft.Office.TranslationServices namespace