Search Results for

    Show / Hide Table of Contents

    Class PageTranslationOptions

    Class that defines the languages for which a translation must be generated

    Inheritance
    System.Object
    PageTranslationOptions
    Namespace: PnP.Core.Model.SharePoint
    Assembly: PnP.Core.dll
    Syntax
    public class PageTranslationOptions : object

    Properties

    LanguageCodes

    List of languages to generate a translation for

    Declaration
    public List<string> LanguageCodes { get; }
    Property Value
    PnP.Core.Model.SharePoint.List<System.String>

    Methods

    AddLanguage(Int32)

    Add a new language to the list of langauges to be generated. Note that this language must be a language configured for multi-lingual pages on the site

    Declaration
    public void AddLanguage(int languageId)
    Parameters
    System.Int32 languageId

    Id defining the language to add. See https://capacreative.co.uk/resources/reference-sharepoint-online-languages-ids/ for a list of possible languages

    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer