http://api.microsofttranslator.com/V2
http://api.microsofttranslator.com/V2 / TranslateArray2 Element
In This Topic
    TranslateArray2 Element
    In This Topic
    Namespace http://api.microsofttranslator.com/V2
    Diagram
    User Element Uri Element State Element ReservedFlags Element ProfanityAction Element IncludeMultipleMTAlternatives Element GenderTo Element GenderFrom Element ContentType Element Category Element Sequence options Element to Element from Element string Element Sequence texts Element appId Element Sequence TranslateArray2 Element
    Overview
    Sequence
    appId optional xs:string
    A string containing "Bearer" + " " + access token.
    texts optional ArrayOfstring Complex Type
    A string array representing the text from an unknown language. The size of the text must not exceed 10000 characters.
    Sequence
    string 0..∞ xs:string
    from optional xs:string
    A string containing the language code of the source language. Must be a valid culture name.
    to optional xs:string
    A string containing the language code of the target language. Must be a valid culture name.
    options optional TranslateOptions Complex Type

    A set of options. TranslateOptions contain: uri, category, contentType, user.

    Sequence
    Category optional xs:string
    A string containing the category (domain) of the translation. Defaults to "general".
    ContentType optional xs:string
    A string containing the type of content. Either "text/html" or "text/plain". Defaults to "text/plain".
    GenderFrom optional xs:string
    GenderTo optional xs:string
    IncludeMultipleMTAlternatives optional xs:boolean
    ProfanityAction optional xs:string
    ReservedFlags optional xs:string
    State optional xs:string
    User state to help correlate request and response. The same contents will be returned in the response.
    Uri optional xs:string
    A string containing the content location of this translation.
    User optional xs:string
    A string used to track the originator of the submission.
    Source
    <xs:element name="TranslateArray2" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:complexType>
        <xs:sequence>
          <xs:element minOccurs="0" name="appId" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="texts" nillable="true" type="q18:ArrayOfstring" xmlns:q18="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
          <xs:element minOccurs="0" name="from" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="to" nillable="true" type="xs:string" />
          <xs:element minOccurs="0" name="options" nillable="true" type="q19:TranslateOptions" xmlns:q19="http://schemas.datacontract.org/2004/07/Microsoft.MT.Web.Service.V2" />
        </xs:sequence>
      </xs:complexType>
    </xs:element>
    See Also