Search Results for

    Show / Hide Table of Contents

    Class PageTranslationOptions

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

    Inheritance
    object
    PageTranslationOptions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: PnP.Core.Model.SharePoint
    Assembly: PnP.Core.dll
    Syntax
    public class PageTranslationOptions

    Properties

    LanguageCodes

    List of languages to generate a translation for

    Declaration
    public List<string> LanguageCodes { get; }
    Property Value
    List<string>

    Methods

    AddLanguage(int)

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